{"action":"created","issue":{"url":"https://api.github.com/repos/USGS-R/gsplot/issues/128","labels_url":"https://api.github.com/repos/USGS-R/gsplot/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/USGS-R/gsplot/issues/128/comments","events_url":"https://api.github.com/repos/USGS-R/gsplot/issues/128/events","html_url":"https://github.com/USGS-R/gsplot/issues/128","id":96147080,"number":128,"title":"Embed callout + error_bar in point/line/","user":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"lindsaycarr","id":13220910,"avatar_url":"https://avatars.githubusercontent.com/u/13220910?v=3","gravatar_id":"","url":"https://api.github.com/users/lindsaycarr","html_url":"https://github.com/lindsaycarr","followers_url":"https://api.github.com/users/lindsaycarr/followers","following_url":"https://api.github.com/users/lindsaycarr/following{/other_user}","gists_url":"https://api.github.com/users/lindsaycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/lindsaycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindsaycarr/subscriptions","organizations_url":"https://api.github.com/users/lindsaycarr/orgs","repos_url":"https://api.github.com/users/lindsaycarr/repos","events_url":"https://api.github.com/users/lindsaycarr/events{/privacy}","received_events_url":"https://api.github.com/users/lindsaycarr/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/USGS-R/gsplot/milestones/3","html_url":"https://github.com/USGS-R/gsplot/milestones/Down%20the%20road","labels_url":"https://api.github.com/repos/USGS-R/gsplot/milestones/3/labels","id":1216800,"number":3,"title":"Down the road","description":null,"creator":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-07-20T20:03:23Z","updated_at":"2015-08-04T22:05:44Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-07-20T20:03:15Z","updated_at":"2015-08-05T16:13:45Z","closed_at":null,"body":"Keep current functionality (condensing error_bar) but allow to be arguments in points/lines:\r\n\r\n```r\r\ngs <- gsplot() %>%\r\n    points(1:5, 1:5, \r\n                 callouts=list(labels=c(rep(NA, 4), \"oh\"))), \r\n                 error_bars=list(y.high=.1)))\r\ngs\r\n```"},"comment":{"url":"https://api.github.com/repos/USGS-R/gsplot/issues/comments/128054622","html_url":"https://github.com/USGS-R/gsplot/issues/128#issuecomment-128054622","issue_url":"https://api.github.com/repos/USGS-R/gsplot/issues/128","id":128054622,"user":{"login":"lindsaycarr","id":13220910,"avatar_url":"https://avatars.githubusercontent.com/u/13220910?v=3","gravatar_id":"","url":"https://api.github.com/users/lindsaycarr","html_url":"https://github.com/lindsaycarr","followers_url":"https://api.github.com/users/lindsaycarr/followers","following_url":"https://api.github.com/users/lindsaycarr/following{/other_user}","gists_url":"https://api.github.com/users/lindsaycarr/gists{/gist_id}","starred_url":"https://api.github.com/users/lindsaycarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lindsaycarr/subscriptions","organizations_url":"https://api.github.com/users/lindsaycarr/orgs","repos_url":"https://api.github.com/users/lindsaycarr/repos","events_url":"https://api.github.com/users/lindsaycarr/events{/privacy}","received_events_url":"https://api.github.com/users/lindsaycarr/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T16:13:45Z","updated_at":"2015-08-05T16:13:45Z","body":"I didn't want to change the way NA's were handled in `points.R` where the embedded callouts function was called because the callouts functionality should be consistent whether it's embedded or not. So, I added to the actual `callouts.R` code (PR will come later today with some other commits)\r\n\r\nSo, these are the same:\r\n```r\r\ngs <- gsplot() %>%\r\n         points(x=c(1,2), y=c(4,2), xlim=c(0, 5), ylim=c(0,5)) %>%\r\n         callouts(x=c(1,2), y=c(4,2), labels=c(NA, \"data\"), col=\"blue\")\r\ngs\r\n\r\ngs <- gsplot() %>%\r\n         points(x=c(1,2), y=c(4,2), xlim=c(0, 5), ylim=c(0,5),\r\n\t\t\tcallouts=list(labels=c(NA, \"data\"), col=\"blue\"))\r\ngs\r\n```"}}