Nathan Vandergrift
2007-Nov-29 21:22 UTC
[R] Controlling Postscript output, size and orientation
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.
Patrick Connolly
2007-Dec-02 19:03 UTC
[R] Controlling Postscript output, size and orientation
On Thu, 29-Nov-2007 at 01:22PM -0800, Nathan Vandergrift wrote: |> |> 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. Check out the paper argument to the postscript device. I think you'll be more sucessful. HTH -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___ Patrick Connolly {~._.~} Great minds discuss ideas _( Y )_ Middle minds discuss events (:_~*~_:) Small minds discuss people (_)-(_) ..... Anon ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.