[R] Title with substitute and paste
Berton Gunter
gunter.berton at gene.com
Mon Aug 2 22:24:24 CEST 2004
Interesting ...
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
> plot(0,0)
> title(paste("n = ", nval))
for example.
Or you could wrap the text version in expression() to use plotmath fonts.
Cheers,
Bert
Bert Gunter
Non-Clinical Biostatistics
Genentech
MS: 240B
Phone: 650-467-7374
"The business of the statistician is to catalyze the scientific learning
process."
-- George E.P. Box
More information about the R-help
mailing list