Skip to content

How to use strings from a data.frame as the argument of an expression() for plot

2 messages · MrJ Man, Gabor Grothendieck

#
Thanks for your response; one more thing: Is it
possible to use a data.frame 
for the same effect, as these values are associated
with some others (I could 
of course use them separately, but merging them in a
data.frame should be 
possible in R)?
bquote(.(e[[i]]) ~ Year ~
r-help and particularly
y.were undefined.
#
Just store them as strings in the data frame and then perform a conversion
to expressions prior to the loop:


DF <- data.frame(s = c("O[3]", "NO", "NO[2]"), stringsAsFactors = FALSE)
e <- parse(text = DF$s)
... continue with prior solution ...
On 12/20/06, MrJ Man <auxsvr at yahoo.com> wrote: