Skip to content
Prev 261720 / 398502 Next

plotmath: paste string and expression [from a vector of expressions]

Hi:

This seems to work:

vars2 <- c(quote(alpha), quote(beta))   # returns a list of mode call
plot(0, 0, main = bquote(bold('Foo '~.(vars2[[2]]))))

Expressions are only evaluated once, which means that inner
expressions are not evaluated. You need a call object rather than an
expression inside of bquote().

HTH,
Dennis
On Thu, Jun 2, 2011 at 11:43 AM, Marius Hofert <m_hofert at web.de> wrote: