{"action":"created","issue":{"url":"https://api.github.com/repos/AndrewLJackson/siar/issues/6","labels_url":"https://api.github.com/repos/AndrewLJackson/siar/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/AndrewLJackson/siar/issues/6/comments","events_url":"https://api.github.com/repos/AndrewLJackson/siar/issues/6/events","html_url":"https://github.com/AndrewLJackson/siar/issues/6","id":58058457,"number":6,"title":"siarplotdata() for one group","user":{"login":"VirginiaMorera","id":11058769,"avatar_url":"https://avatars.githubusercontent.com/u/11058769?v=3","gravatar_id":"","url":"https://api.github.com/users/VirginiaMorera","html_url":"https://github.com/VirginiaMorera","followers_url":"https://api.github.com/users/VirginiaMorera/followers","following_url":"https://api.github.com/users/VirginiaMorera/following{/other_user}","gists_url":"https://api.github.com/users/VirginiaMorera/gists{/gist_id}","starred_url":"https://api.github.com/users/VirginiaMorera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VirginiaMorera/subscriptions","organizations_url":"https://api.github.com/users/VirginiaMorera/orgs","repos_url":"https://api.github.com/users/VirginiaMorera/repos","events_url":"https://api.github.com/users/VirginiaMorera/events{/privacy}","received_events_url":"https://api.github.com/users/VirginiaMorera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AndrewLJackson/siar/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-18T11:52:22Z","updated_at":"2015-06-25T08:52:18Z","closed_at":null,"body":"Version: 4.2\r\nI detected a possible bug in siarplotdata() for the single group version. Aparently takes the column of the grouping variable as the first isotope so siarplotdata(modeldemo, iso=c(1,2) produces \r\n![bugexample1](https://cloud.githubusercontent.com/assets/11058769/6246686/0724f0ca-b76c-11e4-9c94-09a246f3b7b2.png)\r\nIn my example N is the 1rst isotope, and siar is plotting it as the second, and \"Code\" as the first. As a consequence, the second isotope, C, gets plotted as the third like in siarplotdata(modeldemo, iso=c(2,3) \r\n![bugexample2](https://cloud.githubusercontent.com/assets/11058769/6246739/86aa93cc-b76c-11e4-8b77-9bd64ad0221b.png)\r\nThe sources are correctly plotted, and the axis values seem to correspond the the actual isotopic values of the sources, the problem is only in representing the consumers. \r\n\r\nThis is also an issue with only two isotopes, but it disappears in the multigroup version. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AndrewLJackson/siar/issues/comments/115168323","html_url":"https://github.com/AndrewLJackson/siar/issues/6#issuecomment-115168323","issue_url":"https://api.github.com/repos/AndrewLJackson/siar/issues/6","id":115168323,"user":{"login":"AndrewLJackson","id":3323312,"avatar_url":"https://avatars.githubusercontent.com/u/3323312?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewLJackson","html_url":"https://github.com/AndrewLJackson","followers_url":"https://api.github.com/users/AndrewLJackson/followers","following_url":"https://api.github.com/users/AndrewLJackson/following{/other_user}","gists_url":"https://api.github.com/users/AndrewLJackson/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewLJackson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewLJackson/subscriptions","organizations_url":"https://api.github.com/users/AndrewLJackson/orgs","repos_url":"https://api.github.com/users/AndrewLJackson/repos","events_url":"https://api.github.com/users/AndrewLJackson/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewLJackson/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T08:52:18Z","updated_at":"2015-06-25T08:52:18Z","body":"this works for me in the demo_script.r file using the geese1.txt consumer file in place of geese2.txt. Can you check it works for you and i will close this issue. thanks."}}