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

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

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

2019-11-16 Thread Rolf Turner
I need to call ggplot() from another function with the names of the faceting variables supplied as arguments to the calling function. These names (which are names of columns in the relevant data frame) are given as character arguments, say "rowName" and "colName". Suppose that rowName is