[R] legend

Bernardo Rangel Tura tura at centroin.com.br
Wed Oct 15 10:58:37 CEST 2008


Em Ter, 2008-10-14 às 18:44 -0700, Lavan escreveu:
> Hi R users,
> 
> I'm trying to have the symbols for sigma[1] in my legend. the code is given
> below, please have a look.
> 
> Thanks,
> 
> lavan

try legend("bottom",legend=expression(sigma[1]),...)

> 
> 
> legend("bottom",legend=paste("Sigma1=", c(0.01,0.1,0.2,0.5,1,1.5,2,4,6,9.5),
> sep=""),
> fill=c("red","green","blue","black","pink","brown","purple","yellow","lightblue","orange"))
> 
-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil



More information about the R-help mailing list