[R] plotmath question

2010-08-19 Thread array chip
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

Re: [R] plotmath question

2010-08-19 Thread baptiste auguie
Try this, b = 20 plot(1, ylab= bquote(italic(P) * .(b)) ) HTH, baptiste On 19 August 2010 20:02, array chip arrayprof...@yahoo.com wrote: 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,

Re: [R] plotmath question

2010-08-19 Thread David Winsemius
On Aug 19, 2010, at 2:02 PM, array chip wrote: 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

Re: [R] plotmath question

2010-08-19 Thread array chip
11:08:10 AM Subject: Re: [R] plotmath question Try this, b = 20 plot(1, ylab= bquote(italic(P) * .(b)) ) HTH, baptiste On 19 August 2010 20:02, array chip arrayprof...@yahoo.com wrote: Hi all, let me give a simple example: b-20 I would like to print ylab as P20 where P is printed

Re: [R] plotmath question

2010-08-19 Thread David Winsemius
baptiste.aug...@googlemail.com To: array chip arrayprof...@yahoo.com Cc: r-h...@stat.math.ethz.ch Sent: Thu, August 19, 2010 11:08:10 AM Subject: Re: [R] plotmath question Try this, b = 20 plot(1, ylab= bquote(italic(P) * .(b)) ) HTH, baptiste On 19 August 2010 20:02, array chip arrayprof...@yahoo.com

Re: [R] plotmath question

2010-08-19 Thread array chip
Thanks David! John - Original Message From: David Winsemius dwinsem...@comcast.net To: array chip arrayprof...@yahoo.com Cc: baptiste auguie baptiste.aug...@googlemail.com; r-h...@stat.math.ethz.ch Sent: Thu, August 19, 2010 11:34:07 AM Subject: Re: [R] plotmath question On Aug 19

Re: [R] plotmath question

2010-08-19 Thread David Winsemius
On Aug 19, 2010, at 2:46 PM, array chip wrote: Thanks David! I see that I didn't produce the correct answer, but perhaps I'm being thanked for something that was generalizable in that direction. Better would have ben one of these: plot(1, ylab= bquote(italic(P) *.(b)*,*~A) )

Re: [R] plotmath question

2010-08-19 Thread array chip
: Re: [R] plotmath question On Aug 19, 2010, at 2:46 PM, array chip wrote: Thanks David! I see that I didn't produce the correct answer, but perhaps I'm being thanked for something that was generalizable in that direction. Better would have ben one of these: plot(1, ylab= bquote(italic(P