Skip to content
Prev 326469 / 398502 Next

Transferring commas in character vector to expression

I have not followed this thread, so I am only responding to your last
remark, and therefore the following may be useless to you (how's that
for for a caveat!!) ....  but maybe

plot(1:10,main=expression(delta*","*alpha))

might be helpful.

Alternatively:

x <- "delta"
y <- "alpha"
plot(1:10,   main = bquote(.(as.name(x))*","*.(as.name(y)))  )

produces the same result.

Again, if this is all irrelevant, just ignore.
If not, ?bquote and ?plotmath  contain all necessary explanation.

Cheers,
Bert


On Sat, Jul 6, 2013 at 6:57 PM, Eric Archer - NOAA Federal
<eric.archer at noaa.gov> wrote: