I am having difficulties exporting figures from the statistical
program R to Latex. I think I might have the wrong package. Does
anyone know the step by step way to put the R figures into Latex?
NOTE.
I am having difficulties exporting figures from the statistical
program R to Latex. I think I might have the wrong package or
something. Does anyone know the step by step way to put the R
generated figures into Latex? I really mean step by step since I am a
new user for both R and Latex.
NOTE. I am NOT using the {apa} document class, but I am using the
{report} document class.
Thanks a lot!
Cheers,
Biru
I've written down details in this essay:
http://pj.freefaculty.org/stat/ps706/Downloads/StuffWorthKnowing.pdf
Look in the chapter on Plotting for a section on "how to save graphics in R".
and there is also an R script that demonstrates several ways of saving
graphs here:
http://pj.freefaculty.org/stat/ps706/AboutSavingGraphs.R.
--
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas
On Feb 9, 8:53 pm, Paul Johnson <pauljoh...@gmail.com> wrote:
> Save your files as eps or pdf and then use include graphics to
> incorporate into your LaTeX document.
>
> I've written down details in this essay:
>
> http://pj.freefaculty.org/stat/ps706/Downloads/StuffWorthKnowing.pdf
>
> Look in the chapter on Plotting for a section on "how to save graphics in R".
>
> and there is also an R script that demonstrates several ways of saving
> graphs here:
>
> http://pj.freefaculty.org/stat/ps706/AboutSavingGraphs.R.
>
Biru Zhou <biru...@gmail.com> 09-Feb-10 22:26:
In R:
?postscript
?png
?jpg
eg
postscript(file="myplot.eps",horizontal=FALSE,onefile=FALSE,paper="special",width=5,height=5)
plot(1:10)
dev.off()
Then, include the graphics file like you would into any other LaTeX
document with
\includegraphics{myplot}
If you need more help, please provide more information.
Marianne
--
Marianne Promberger
http://promberger.info
http://participate-in-research.org.uk
GnuPG/PGP public key ID 80AD9916
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
The comments are very very helpful and they worked!!
Cheers,
Biru
> --
> You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
> To post to this group, send email to latexus...@googlegroups.com.
> To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.
>
>
--
Biru loves La vie en rose
Andrey Paramonov