pictex(file = "Rplots.tex", width = 5, height = 4, debug = FALSE,
bg = "white", fg = "black")
file
| the file where output will appear. |
width
| The width of the plot in inches. |
height
| the height of the plot in inches. |
debug
| should debugging information be printed. |
bg
| the background color for the plot. |
fg
| the foreground color for the plot. |
Lamport, L. (1994). LATEX: A Document Preparation System. Reading, MA: Addison-Wesley.
Goossens, M., F. Mittelbach and A. Samarin (1994). The LATEX Companion. Reading, MA: Addison-Wesley.
postscript, Devices.
pictex()
plot(1:11,(-5:5)^2, type='b', main="Simple Example Plot")
dev.off()
##--------------------
%% LaTeX Example
\documentclass{article}
\usepackage{pictex}
\begin{document}
%...
\begin{figure}[h]
\centerline{\input{Rplots.tex}}
\caption{}
\end{figure}
%...
\end{document}
%%-- TeX Example --
\input pictex
$$ \input Rplots.tex $$