Re: [R] math symbol + value of a variable in legend.

2009-08-27 Thread William Dunlap
eth Roy Cabrera Torres > Cc: RHelp > Subject: Re: [R] math symbol + value of a variable in legend. > > > > -Original Message- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] On Behalf Of Martin Maechler > > Sent: Thursday,

Re: [R] math symbol + value of a variable in legend.

2009-08-27 Thread Henrique Dallazuanna
Try this: legend("topleft", c(as.expression(bquote(mu == .(m1))), as.expression(bquote(mu == .(m2) On Tue, Aug 25, 2009 at 5:30 PM, Kenneth Roy Cabrera Torres < krcab...@une.net.co> wrote: > Hi R users: > > I will like to have a legend with math symbols and also with > the value of a variabl

Re: [R] math symbol + value of a variable in legend.

2009-08-27 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Martin Maechler > Sent: Thursday, August 27, 2009 1:30 AM > To: Kenneth Roy Cabrera Torres > Cc: RHelp > Subject: Re: [R] math symbol + value of

Re: [R] math symbol + value of a variable in legend.

2009-08-27 Thread Martin Maechler
> "KRCT" == Kenneth Roy Cabrera Torres > on Tue, 25 Aug 2009 17:26:04 -0500 writes: KRCT> Thank you very much for your help. KRCT> To the R gurus: It will be better at the future to simplify this KRCT> options. KRCT> They are too cumbersome!!! The ones David showed

Re: [R] math symbol + value of a variable in legend.

2009-08-25 Thread Kenneth Roy Cabrera Torres
Thank you very much for your help. To the R gurus: It will be better at the future to simplify this options. They are too cumbersome!!! Thank you!!! El mar, 25-08-2009 a las 18:16 -0400, David Winsemius escribió: > On Aug 25, 2009, at 5:51 PM, David Winsemius wrote: > > > > > On Aug 25, 20

Re: [R] math symbol + value of a variable in legend.

2009-08-25 Thread Gabor Grothendieck
Check out bquote as in this example: https://stat.ethz.ch/pipermail/r-help/2009-August/209373.html On Tue, Aug 25, 2009 at 4:30 PM, Kenneth Roy Cabrera Torres wrote: > Hi R users: > > I will like to have a legend with math symbols and also with > the value of a variable. > > But I cannot obtain b

Re: [R] math symbol + value of a variable in legend.

2009-08-25 Thread David Winsemius
On Aug 25, 2009, at 5:51 PM, David Winsemius wrote: On Aug 25, 2009, at 4:30 PM, Kenneth Roy Cabrera Torres wrote: Hi R users: I will like to have a legend with math symbols and also with the value of a variable. But I cannot obtain both at the same time (symbol + value of a variable): He

Re: [R] math symbol + value of a variable in legend.

2009-08-25 Thread David Winsemius
On Aug 25, 2009, at 4:30 PM, Kenneth Roy Cabrera Torres wrote: Hi R users: I will like to have a legend with math symbols and also with the value of a variable. But I cannot obtain both at the same time (symbol + value of a variable): Here is a reproducible example: m1<-5 m2<-12 I think I

[R] math symbol + value of a variable in legend.

2009-08-25 Thread Kenneth Roy Cabrera Torres
Hi R users: I will like to have a legend with math symbols and also with the value of a variable. But I cannot obtain both at the same time (symbol + value of a variable): Here is a reproducible example: m1<-5 m2<-12 plot(1:5,1:5,type="n") legend("topleft",legend=c(paste(expression(mu),"=",m1),