Re: R-beta: postscript in S

Helgi Tomasson (helgito@hag.hi.is)
Sun, 26 Apr 1998 21:30:29 +0000 (GMT)


From: helgito@hag.hi.is (Helgi Tomasson)
Message-Id: <199804262130.VAA29519@walras.hag.hi.is>
Subject: Re: R-beta: postscript in S
In-Reply-To: <Pine.LNX.3.96.980426115435.31515A-100000@buffy> from Thomas Lumley at "Apr 26, 98 12:07:40 pm"
To: thomas@biostat.washington.edu (Thomas Lumley)
Date: Sun, 26 Apr 1998 21:30:29 +0000 (GMT)

> 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@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._