Hi! Could someone give advise on how to plot Greek letters where subscript text is picked from the names of a data.frame. I want what appears using this code mtext(expression(mu["Mountain"]),side=2,at=max(y)-7,las=1,cex=1.5) but I would like to do it using something like this: mtext(expression(mu[colnames(PresEsts)[2]]),side=2,at=max(y)-15,las=1) BTW, colnames(PresEsts)[2] [1] "Mountain" Thanks! /Tord -- Tord Sn?ll Department of Ecology Swedish University of Agricultural Sciences (SLU) P.O. 7002, SE-750 07 Uppsala, Sweden Office/Mobile/Fax +46-18-672612/+46-730-891356/+46-18-673537 E-mail: tord.snall at nvb.slu.se www.nvb.slu.se/staff_tordsnall
Henrique Dallazuanna
2007-Aug-30 16:19 UTC
[R] mtext, picking subscript text from colnames(df)
Try: mtext(eval(parse(tex=paste("expression(mu[", colnames(PresEsts)[2],"])", sep=""))),side=2,at=max(y)-15,las=1) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[alternative HTML version deleted]]