USGS-R / gsplot

plotting foundation for timeseries reporting
Other
6 stars 14 forks source link

data like ggplot2? #195

Open ldecicco-USGS opened 9 years ago

ldecicco-USGS commented 9 years ago

Should we consider an option that users could input a dataframe as data in the initial call, like ggplot2?:

x <- 1:4
z <- 2:5
df <- data.frame(x, y)

gs <- gsplot(df) %>%
  points(x, y) 
gs

Ideally (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.

?

jiwalker-usgs commented 9 years ago

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.

ldecicco-USGS commented 9 years ago

I'm still a fan of this fyi....ggplot2 and dplyr are really getting people use to the non-standard evaluations.