[R] persp and greek symbols in the axes labels
Nathalie Peyrard
Nathalie.Peyrard at toulouse.inra.fr
Mon Jul 23 16:58:05 CEST 2007
Hello,
I am plotting a 3D function using persp and I would like to use greek
symbols in the axes labels.
I have found examples like this one on the web:
plot(0,0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)))
this works well with plot but not with persp:
with the command
persp(M,theta = -20,phi =
0,xlab=expression(kappa[lambda]),ylab=substitute(paste(phi,"=",true,sigma),list(true=5)),zlab
= "Z")
I get the labels as in toto.eps
Any suggestion? Thanks!
Nathalie
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INRA Toulouse - Unité de Biométrie et Intelligence Artificielle
Chemin de Borde-Rouge BP 52627 31326 CASTANET-TOLOSAN cedex FRANCE
Tel : +33(0)5.61.28.54.39 - Fax : +33(0)5.61.28.53.35
Web :http://mia.toulouse.inra.fr/index.php?id=217
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toto.eps
Type: application/postscript
Size: 18184 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20070723/d5dc7c6e/attachment.eps
More information about the R-help
mailing list