[R-SIG-Mac]postscript()

David A Richmond richmond@saintmarys.edu
Sat, 23 Feb 2002 13:17:25 -0500 (EST)


Hi,
	I've been using postscript() and ps2pdf to view plot outputs from
DarwinR (1.4.0)  using OS X's (10.1.3) terminal program. An example of the
commands I use are given below. I have found some odd behavior. If I do
the plot command below in DarwinX I get a plot with the "ns" axis on the
bottom and the "meanpl/maxvec" axis on the left. If I do the series of
commands below, then convert "plot1.ps" to "plot1.pdf" using ps2pdf, I
find that the 'ns' axis is on the left and the "meanpl/maxvec" axis is on
the top! If I change the horizontal flag to FALSE, the location of the
labels/axes stays the same, but the relative length of the axes
changes. Is there some other option I need to be invoking in order to get
the postscript/pdf output to match the graphical window output?

dave

> postscript("plot1.ps",horizontal=TRUE,paper="letter")
> plot(ns,meanpl/maxvec)
> dev.off(2)


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|David Richmond                It works on a          |      
+ Dept. of Sociology          complex scientific      + 
|Saint Mary's College          principle, known as    |  
+ Notre Dame, IN 46556               "pot luck."      +
|574-284-4517                    - The Doctor         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+