swihart / lasagnar

Lasagna plots in base and ggplot graphics in R
17 stars 5 forks source link

strings as variable names for ggplot implementation #2

Open swihart opened 7 years ago

swihart commented 7 years ago

If I remember correctly, the thing holding up the ggplot implemenation was passing the strings and then recognizing them as variable names. This worked for you in another project:

When trying to convert a paste string into a variable, eval(as.name(paste())) worked for me, thanks!

From the comments of: http://stackoverflow.com/a/9057793/2727349