From: Ko-Kang Kevin Wang (Ko-Kang@xtra.co.nz)
Date: Fri 20 Dec 2002 - 17:41:05 EST
Message-id: <00a301c2a7f2$c663d1f0$df2558db@kwan022>
Hi,
----- Original Message -----
From: "Andrew Criswell" <arc@arcriswell.com>
To: "r-help" <r-help@stat.math.ethz.ch>
Sent: Friday, August 22, 2003 2:17 AM
Subject: [R] Getting graphs into LaTeX
> Hello ALL:
>
> I ran with success the following commands in R getting a file saved
> --------------------------------------------------------------------------
----------
> postscript()
>
> postscript('~/data/st202/2003/lecture00/lecture00-graph-01.eps',
> horizontal = FALSE, height = 6, pointsize = 10)
>
> hist(trial.outcome.5, breaks = 5,
> main = '1000 Replications of 5 Trials of a Coin Toss',
> xlab = 'Frequency of a Tail')
> --------------------------------------------------------------------------
----------
Have you closed the postscript device? Normally you need a dev.off() after
you finished the plot. Try putting dev.off() after your hist().
The other thing is can you actually view "lecture00-graph-01.eps" in the
directory, with a postscript Viewer?
The last point, I think pdflatex (or pdftex) does not accept PS/EPS
formatted picture. Can you latex trix.tex? If so, try to save your
histogram as a PDF or PNG file, then pdflatex it again.
Cheers,
Kevin
------------------------------------------------
Ko-Kang Kevin Wang
Master of Science (MSc) Student
Department of Statistics
University of Auckland
New Zealand
www.stat.auckland.ac.nz/~kwan022
********************************************
______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help
This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:59 EST