Re: [R] Graphic legend with mathematical symbol, numeric variable and character variable
Hi David, It's best to keep the mailing list in the loop so I'm cc-ing to R-help. I've rethought your problem and propose a different solution. The main problem is to create a vector of expressions to be used in the legend. (see https://stat.ethz.ch/pipermail/r-help/2011-February/270106.html)
Re: [R] Graphic legend with mathematical symbol, numeric variable and character variable
On 2012-03-20 06:09, "ECOTIÈRE David (Responsable d'activité) - CETE Est/LRPC de Strasbourg/6 Acoustique" wrote: Hi, I'd like to make a legend with a mix of mathematical symbol (tau), numeric variable and character variables.I have tried : types<-c("Type 1","Type 2","Type 2") tau<-c(1,3,2) leg
Re: [R] Graphic legend with mathematical symbol, numeric variable and character variable
There are a few different ways to do this; see the examples in ?plotmath under the heading "How to combine 'math' and numeric variables". -- Patrick Breheny Assistant Professor Department of Biostatistics Department of Statistics University of Kentucky On 03/20/2012 09:09 AM, "ECOTIÈRE David (R
[R] Graphic legend with mathematical symbol, numeric variable and character variable
2012-03-20
Thread
ECOTIÈRE David (Responsable d'activité) - CETE Est/LRPC de Strasbourg/6 Acoustique
Hi, I'd like to make a legend with a mix of mathematical symbol (tau), numeric variable and character variables.I have tried : types<-c("Type 1","Type 2","Type 2") tau<-c(1,3,2) legend(x="topright",legend=paste(types,"tau=",expression(tau))) but it doesn't work: the 'tau' symbol is not wri