Re: [R] Supplying names to vars() in ggplot2.

2019-11-17 Thread Rolf Turner
On 18/11/19 2:28 AM, Hadley Wickham wrote: See this new vignette in dev ggplot2: https://ggplot2.tidyverse.org/dev/articles/ggplot2-in-packages.html Hadley Yes! Thank you. Bottom line: for what I want to do the syntax is facet_grid(row=vars(.data[[rowName]]),col=vars(.data[[colName]]))

Re: [R] Supplying names to vars() in ggplot2.

2019-11-17 Thread Hadley Wickham
See this new vignette in dev ggplot2: https://ggplot2.tidyverse.org/dev/articles/ggplot2-in-packages.html Hadley On Saturday, November 16, 2019, Rolf Turner wrote: > > I need to call ggplot() from another function with the names of the > faceting variables supplied as arguments to the calling f