This seems like it should be pretty obvious, but I've tried substitute
, bquote
, expression
, paste
, and cat
, with similar results (failure).
require(quantmod)
getSymbols("SAM")
thing = "SAM"
plot(SAM) #this works fine
plot(thing) #this does not
Encasing thing
in xts(thing)
and so on doesn't work either.