[R] Re: fighting with ps.options and xlim/ylim

Marc Schwartz MSchwartz at MedAnalytics.com
Wed Jun 9 18:06:00 CEST 2004


On Wed, 2004-06-09 at 09:30, Uwe Ligges wrote:
> ivo welch wrote:
> 
> > 
> > Thanks again for all the messages.
> > 
> > Is the 4% in par('usr') hardcoded?  if so, may I suggest making this a 
> > user-changeable parameter for x and y axis?
> 
> See ?par and its argumets xaxp, yaxp which can be set to "i".

Quick correction. That should be xaxs and yaxs. See my initial reply.

xaxp and yaxp are for the positions of the tick marks.

> > I looked at psfrag, and it seems like a great package.  alas, I have 
> > switched to pdflatex, and pdffrag does not exist.  :-(

One option to point out, is that if the functionality in psfrag is
important to you, you can use 'ps2pdf' to convert a ps file to a pdf
file. ps2pdf filters the ps file through ghostscript to create the pdf
file.

It means a three step process (latex, dvips and ps2pdf), but it can
provide additional functionality that pdflatex does not support, such as
the use of \special as in the package 'pstricks'. pdf does not have any
programming language functionality as does postscript, so there are some
tradeoffs and likely why there is no pdffrag.

Food for thought.

> > I also discovered that there is a pdf device now.  neat.  
> 
> Since R-1.3.0, as the News file tells us.
> 
> Uwe Ligges

HTH,

Marc




More information about the R-help mailing list