Re: [R] LaTeX in R graph

2006-02-28 Thread David Scott
On Tue, 28 Feb 2006, Dietrich Trenkler wrote:

> [EMAIL PROTECTED] 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@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
AucklandNEW ZEALAND
Phone: +64 9 373 7599 ext 86830 Fax: +64 9 373 7000
Email:  [EMAIL PROTECTED]


Graduate Officer, Department of Statistics

__
R-help@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


Re: [R] LaTeX in R graph

2006-02-28 Thread Romain Francois
Le 28.02.2006 10:27, [EMAIL PROTECTED] 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
?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


-- 
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
Discover the R Movies Gallery : http://addictedtor.free.fr/movies
+---+
| Romain FRANCOIS - http://francoisromain.free.fr   |
| Doctorant INRIA Futurs / EDF  |
+---+

__
R-help@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


Re: [R] LaTeX in R graph

2006-02-28 Thread Dietrich Trenkler
[EMAIL PROTECTED] 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@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.

D. Trenkler

-- 
Dietrich Trenkler c/o Universitaet Osnabrueck 
Rolandstr. 8; D-49069 Osnabrueck, Germany
email: [EMAIL PROTECTED]

__
R-help@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