In ggplot2, how do I refer to a variable name with spaces?
ggplot2
Why do qplot() and ggplot() break when used on variable names with
qplot()
ggplot()
Using get is not more "formal", actually I would argue the opposite. As the R help says (help("`")), you can almost always use a variable name that contains spaces, provided it's quoted. (Normally, with a backtick, as already suggested.)
get
help("`")