[R] LaTeX in R graph

David Scott d.scott at auckland.ac.nz
Tue Feb 28 22:25:20 CET 2006


On Tue, 28 Feb 2006, Dietrich Trenkler wrote:

> depire at inrets.fr schrieb:
>
>> 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$")
>>
>> ______________________________________________
>> R-help at stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>>
>>
>>
> Hi,
>
> have a look at the psfrag package.
>
I have an example of the use of psfrag in the file "Lecture Slides on TeX" 
which is on the page:

http://www.stat.auckland.ac.nz/~dscott/782/index.php

David Scott
_________________________________________________________________
David Scott	Department of Statistics, Tamaki Campus
 		The University of Auckland, PB 92019
 		Auckland	NEW ZEALAND
Phone: +64 9 373 7599 ext 86830		Fax: +64 9 373 7000
Email:	d.scott at auckland.ac.nz


Graduate Officer, Department of Statistics




More information about the R-help mailing list