Skip to content
Prev 87338 / 398502 Next

LaTeX in R graph

Le 28.02.2006 10:27, depire at inrets.fr a ??crit :
Bonjour Alexandre,

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

x<-seq(0,1,length=100)
y<-x*x
plot(x,y,xlab=expression(X),ylab=expression(X^2))


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.

Romain