[R] How to include TeX formulae in R plots?

Thomas Lumley thomas at biostat.washington.edu
Thu Feb 3 17:30:44 CET 2000


On Thu, 3 Feb 2000, Alberto [iso-8859-1] Muñoz wrote:

> Hi, all
> 
> Does anybody know if it is possible to include TeX-style formulae
> in R plots? The aim is to export such plots to LaTeX documents
> using the postscript() device.
> 

R has a facility for printing expressions as text, which results in quite
a lot of TeX-style functionality.  It's not quite as pretty as TeX, and
it probably won't be using the same fonts as your LaTeX document, but it
is quite easy to use.

There are examples of how to do this in help(text) and help(legend).
There used to be a description in doc/plotmath.tex,but it seems to have
moved.


	-thomas

Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list