Re: [R] Lattice device page options-margins

From: Chuck Cleland <ccleland_at_optonline.net>
Date: Thu 10 Mar 2005 - 06:39:35 EST

You can add some space to the left by setting the left.padding component of the layout.widths trellis setting. For example:

library(lattice)
trellis.device(new=TRUE)
trellis.par.set(layout.widths = list(left.padding = 20))

require(stats)
## Tonga Trench Earthquakes
Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes)

hope this helps,

Chuck Cleland

Bock, Michael wrote:
> I am using lattice to make figures as pdfs:
> trellis.device(device = "pdf",file = "Figure6.pdf",color = FALSE)
>
> I need to specify some blank space on the left-hand margins (the pages
> will be bound so we need about 0.5 inch)). I have tried a number of
> solutions but none seems to work (e.g. par.set). Can this be done when
> initiating the plotting device? Or is the some other way that does not
> require me to manually move everything over?
>
>
>
>
> Michael J. Bock, PhD.
> ARCADIS
> 24 Preble St. Suite 100
> Portland, ME 04101
> 207.828.0046
> fax 207.828.0062
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Mar 10 22:13:15 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:42 EST