Hi, plot( <whatever> , xlab=expression(rho)) works fine and plots LaTeX''s \rho. How can I plot \varrho ? Torsten -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 29 May 2000, Torsten Hothorn wrote:> > Hi, > > plot( <whatever> , xlab=expression(rho)) > > works fine and plots LaTeX''s \rho. How can I plot \varrho ?Don''t think so. What you get depends on the output device, but I think you get PostScript''s symbol font''s rho. (On my system, on both postscript and x11 devices.) That font does not have the equivalent of varrho (although it does for varpsi). The usual answer is to use pstricks with LaTeX to post-process the output. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> > Don''t think so. What you get depends on the output device, but I think > you get PostScript''s symbol font''s rho. (On my system, on both postscript > and x11 devices.) That font does not have the equivalent of varrho > (although it does for varpsi). > > The usual answer is to use pstricks with LaTeX to post-process the output. >Thanks to Prof. Ripley for the hint, maybe someone other is interested, so I will shortly outline what "to use pstricks with LaTeX" means: * get PSfrag (e.g. www.dante.de) * get graphics (same url) * create your ps-graphic in R and define "tags" e.g. postscript("myfile.ps") plot(..., xlab="rho", ylab="wrho") dev.off() system("ps2epsi myfile.ps") * add \usepackage{graphics} \usepackage{psfrag} to your LaTeX-File * and now we reach the climax: \begin{figure} \begin{center} \psfrag{rho}{$\varrho$} <-- this replaces rho with \varrho \psfrag{wrho}{$W(\varrho)$} <-- this replaces wrho with W(\varrho) \includegraphics{myfile.epsi} \caption{wonderful R plotting \label{fig}} \end{center} \end{figure} * run latex and dvips and enjoy :-) Torsten -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._