R-beta: postscript in S

Helgi Tomasson helgito at hag.hi.is
Sun Apr 26 23:30:29 CEST 1998


> On Sat, 25 Apr 1998, Helgi Tomasson wrote: 
> > I am creating postscript-graphics in R.  When I import them into
> >  a LATEX document it is impossible to get the caption close 
> >  to the figure.  I run the same program in Splus, and no problem
> > of getting the caption just below the figure.  Another thing,
> > the ps file that S created is only 10% of the size of the file
> >  that R created.  What is wrong?  Are there some parameters to
> >  be set?
> 
> I haven't noticed this problem with figures from R in LaTeX. Which version
> of R is it, and do you have a specific example?
>
These innocent looking lines:

postscript(file="cusum1.ps",horizontal=T)
nn <- 1:15698
cumefri <- 0.948*(15698^0.5+2*nn/15698^0.5)
cumeps <- cumsum(eps)
cumedrif <- cumsum(epsdrif)
plot(cumeps,ylim=range(cumeps),xlab="Observation number",
ylab="cusum",type='l',lty=1)
legend(1000,650,"no drift",lty=1,bty="n")
par(new=T)
plot(cumedrif,ylim=range(cumeps),xlab="",ylab="",type='l',lty=2)
legend(1000,500,"drift",lty=2,bty="n")
par(new=T)
plot(cumefri,ylim=range(cumeps),xlab="",ylab="",type='l',lty=3)
legend(1000,350,"95% limit",lty=3,bty="n")

generated 753155 Apr 25 19:57 cusum1.ps
in R but
  63586 Apr 25 20:50 cusum1.ps
in S

The result look similar on paper, but I find it hard to get
a caption or text close to the R-figure in a Latex document.

Any clue? PS the S is on HP-ux, R is on Linux Redhat 4.2.

Sincerely yours

Helgi



-- 
Helgi Tomasson                                       FAX:  354-552-6806
University of Iceland                                PHONE:354-525-4571
Faculty of Economics and Business Administration     email:helgito at hag.hi.is 
Oddi v/ Sturlugotu        
IS-101 Reykjavik
ICELAND
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list