[R] Controlling Postscript output, size and orientation
Nathan Vandergrift
bussia89 at yahoo.com
Thu Nov 29 22:22:15 CET 2007
I'm trying to get my graphics so that I can use them in LaTeX to create (via
) a pdf presentation.
I've tried controlling inner and outer margins and figure size using par(),
to no avail. The ps output keeps appearing as a portrait page with a
centered figure. Nothing I have been able to do so far has changed that.
Below is the code:
par( bg="yellow",
lab=c(10,5,7)
#mai=c(1.25, 1, 0.2, 0.2),
#pin=c(6,4)
)
curve(20-(40*(exp(-.4*x)-1)),
from=0,
to=9,
n=1000,
add=F,
type= "l",
lwd=2,
xlab="Ocassion of Measurement",
ylab="y",
)
I had the same issue with a trellis plot:
obs.plot<- xyplot(msen~Age,
data=obs.msen,
groups=ID2,
type="l",
lwd=2,
col=1,
xlab="Age", ylab="Maternal Sensitivity",
ylim=c(-.5,4.5),xlim=c(0,5),
panel=panel.superpose,
par.settings=list(background=list(col="white"))
)
obs.plot
-----
-------------------------------
Project Scientist
University of California, Irvine
--
View this message in context: http://www.nabble.com/Controlling-Postscript-output%2C-size-and-orientation-tf4899986.html#a14035096
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list