[R] plotmath question

array chip arrayprofile at yahoo.com
Thu Aug 19 20:02:24 CEST 2010


Hi all, let me give a simple example:

b<-20
I would like to print ylab as "P20" where "P" is printed in Italic font. When I 
do the following:

plot(1, ylab=expression(paste(italic("P"),b,sep="")))

I got y axis label printed as "Pb" instead of "P20". What is the best solution 
to print platmath symbols with value of the variable at the same time?

Thanks

John



More information about the R-help mailing list