[R] Title with substitute and paste
gunter.berton at gene.com
Mon Aug 2 22:24:24 CEST 2004
I believe that the problem is when you use the substitute construction, you
produce an expression object that is interpreted and rendered using the fonts via
the plotmath facility (?plotmath).
When you just use paste, the title is character and gets rendered via the
defaults of title.
You can make them the same by making them both character strings, e.g., vis
> nval <- 20
> title(paste("n = ", nval))
Or you could wrap the text version in expression() to use plotmath fonts.
"The business of the statistician is to catalyze the scientific learning
-- George E.P. Box
More information about the R-help