Re: [R] LaTeX in R graph

From: Romain Francois <>
Date: Tue 28 Feb 2006 - 20:50:43 EST

Le 28.02.2006 10:27, a écrit :
> Hello,
> I would like to know if it is possible to insert LaTeX typesetting in R output.
> I want to obtain a graph with LaTeX label in order to incorporate it as
> postscript or pdf,
> x<-seq(0,1,length=100)
> y<-x*x
> plot(x,y,xlab="$X$",ylab="$X^2$")
Bonjour Alexandre,

There is already a mechanism in R to insert mathematical annotations in graphics, see


But this is not really LaTeX.

What about creating you graphic with no labels, and then use the LaTeX package eso-pic to put your labels where you like with the command \AddToShipoutPicture*
Maybe somebody has done something to wrap it all.


visit the R Graph Gallery :
Discover the R Movies Gallery :
| Romain FRANCOIS -               |
| Doctorant INRIA Futurs / EDF                                  |

______________________________________________ mailing list
PLEASE do read the posting guide!
Received on Tue Feb 28 20:58:50 2006

This archive was generated by hypermail 2.1.8 : Wed 01 Mar 2006 - 00:08:42 EST