S-plus graphs to LaTeX picture commands

Erin Hodgess (hodgess@uhdux2.dt.uh.edu)
Sat, 24 Jan 1998 09:53:37 -0600


From: hradisch@quark.ivt.com (Herbert R. Radisch)
Subject: S-plus graphs to LaTeX picture commands
Status: R

Erin Haodgess writes:
>
> Kjetil Halvorsen.
> Here is a somewhat old, but useful suggestion:
> You need a sty file called psfig.sty. I will
> send that directly to Kjetil. If anyone else wants
> that file, please let me know!
>
> Now you can create a sample.
>
> Here is a sample Latex File:
>
> \documentstyle[12pt,psfig]{article}
> \oddsidemargin -0.07in
> \evensidemargin -0.04in
> \topmargin -0.13in
> \textheight = 8.4in
> \textwidth = 6.5in
> \pagestyle{empty}
> \begin{document}
>
> \baselineskip = 22pt
>
> \centerline{The test of postscript}
> \centerline{\psfig{figure=corn1.ps,width=4in,height=3in}}
>
> \end{document}
>
> To create the corn1.ps file in S-Plus:
> > postscript("corn1.ps")
> > plot(corn.rain,corn.yield,type="l")
> > q()
>
> Then try it out!
>
> Good Luck!
>
Herbert Radisch writes:

This looks like a pre- 2e release of LaTeX!

This material is from October 1996. We still have some old LaTex
on our UNIX system, so it still works here.

Sincerely,
Erin Hodgess
Assistant Professor
Dept. of Computer and Mathematical Sciences
University of Houston -- Downtown
e-mail: hodgess@uhdux2.dt.uh.edu