Re: R-beta: postscript in S

Helgi Tomasson (
Sun, 26 Apr 1998 21:30:29 +0000 (GMT)

From: (Helgi Tomasson)
Message-Id: <>
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 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:

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",
legend(1000,650,"no drift",lty=1,bty="n")
legend(1000,350,"95% limit",lty=3,bty="n")

generated 753155 Apr 25 19:57
in R but
  63586 Apr 25 20:50
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 Tomasson                                       FAX:  354-552-6806
University of Iceland                                PHONE:354-525-4571
Faculty of Economics and Business Administration 
Oddi v/ Sturlugotu        
IS-101 Reykjavik
r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: