Skip to content

Embed function#235

Merged
jordansread merged 11 commits intoUSGS-R:embed-functionfrom
jordansread:embed-function
Sep 10, 2015
Merged

Embed function#235
jordansread merged 11 commits intoUSGS-R:embed-functionfrom
jordansread:embed-function

Conversation

@jordansread
Copy link
Copy Markdown
Member

anyone interested can take a look:

gs <- points(gsplot(), c(0,3), c(2,4),  
               error_bar(x.low=c(NA,1))) 

image

and callouts too

Jordan S Read added 8 commits September 9, 2015 16:09
@jiwalker-usgs
Copy link
Copy Markdown
Contributor

cool

@lindsayplatt
Copy link
Copy Markdown

👍 much more intuitive than having to also say list() within the embedded feature. I don't know if you're finished or not, but don't forget that the lines function will need the same overhaul that you did to points!

@ldecicco-USGS
Copy link
Copy Markdown
Member

This makes me happy!

@jordansread
Copy link
Copy Markdown
Member Author

note that this currently doesn't support multiple embedded functions, but I see several use cases for that:

gs <- lines(gsplot(), c(0,3), c(2,4), callouts(labels=c('dogs','cats'),col='yellow'), error_bar(x.low=c(NA,1)))

upvote if you want this?

@jiwalker-usgs
Copy link
Copy Markdown
Contributor

👍 it will likely be non-intuitive and hard to deal with error if users can't do two embedded calls. Also, we may want some fanciness in the future that would make this use case more common.

@ldecicco-USGS
Copy link
Copy Markdown
Member

👍 Upvoting. I don't have time today for a review, but if you feel like merging, I can live with discovering issues as we go (on this!)

jordansread pushed a commit that referenced this pull request Sep 10, 2015
@jordansread jordansread merged commit 2561491 into USGS-R:embed-function Sep 10, 2015
@jordansread jordansread deleted the embed-function branch September 10, 2015 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants