Re: [R] Getting graphs into LaTeX

About this list Date view Thread view Subject view Author view Attachment view

From: Andrew Criswell (arc@arcriswell.com)
Date: Fri 22 Aug 2003 - 21:33:31 EST


Message-id: <3F45FF8B.9060703@arcriswell.com>

Thanks to all who responded to my inquiry. Bingo, it works!

I revised the code as follows and it works fine:

For the R code:
_______________________________________________
pdf()

pdf('lecture00-graph-01.pdf',
           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')

dev.off()
_______________________________________________

For the LaTeX document:
_______________________________________________

\documentclass[11pt]{article}
\usepackage[pdftex]{graphicx,color}
\begin{document}
\includegraphics{lecture00-graph-01}
\end{document}

______________________________________________
R-help@stat.math.ethz.ch mailing list
http://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jun 2004 - 09:31:58 EST