{"action":"created","issue":{"url":"https://api.github.com/repos/USGS-R/gsplot/issues/195","labels_url":"https://api.github.com/repos/USGS-R/gsplot/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/USGS-R/gsplot/issues/195/comments","events_url":"https://api.github.com/repos/USGS-R/gsplot/issues/195/events","html_url":"https://github.com/USGS-R/gsplot/issues/195","id":100561981,"number":195,"title":"data like ggplot2?","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":[{"url":"https://api.github.com/repos/USGS-R/gsplot/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T14:54:11Z","updated_at":"2015-08-12T20:12:44Z","closed_at":null,"body":"Should we consider an *option* that users could input a dataframe as data in the initial call, like ggplot2?:\r\n\r\n```r\r\nx <- 1:4\r\nz <- 2:5\r\ndf <- data.frame(x, y)\r\n\r\ngs <- gsplot(df) %>%\r\n  points(x, y) \r\ngs\r\n```\r\n\r\nIdeally (in my head...maybe haven't thought it through)...if there was data passed in, it would look for columns first, if not, it would look for vectors in the workspace. \r\n\r\n?"},"comment":{"url":"https://api.github.com/repos/USGS-R/gsplot/issues/comments/130431117","html_url":"https://github.com/USGS-R/gsplot/issues/195#issuecomment-130431117","issue_url":"https://api.github.com/repos/USGS-R/gsplot/issues/195","id":130431117,"user":{"login":"jiwalker-usgs","id":1173041,"avatar_url":"https://avatars.githubusercontent.com/u/1173041?v=3","gravatar_id":"","url":"https://api.github.com/users/jiwalker-usgs","html_url":"https://github.com/jiwalker-usgs","followers_url":"https://api.github.com/users/jiwalker-usgs/followers","following_url":"https://api.github.com/users/jiwalker-usgs/following{/other_user}","gists_url":"https://api.github.com/users/jiwalker-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jiwalker-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiwalker-usgs/subscriptions","organizations_url":"https://api.github.com/users/jiwalker-usgs/orgs","repos_url":"https://api.github.com/users/jiwalker-usgs/repos","events_url":"https://api.github.com/users/jiwalker-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/jiwalker-usgs/received_events","type":"User","site_admin":false},"created_at":"2015-08-12T20:12:44Z","updated_at":"2015-08-12T20:12:44Z","body":"I am personally not a huge fan of this (in my head `gsplot()` is only for setting up the environment and wouldn't know what to do with something like a data.frame).  I could be probably be persuaded, but this feels just a bit iffy."}}