Skip to content
Back to formatted view

Raw Message

Message-ID: <422F50F7.1070806@optonline.net>
Date: 2005-03-09T19:39:35Z
From: Chuck Cleland
Subject: Lattice device page options-margins
In-Reply-To: <0016F5677B1F1D4281EEBC034993595102728A15@CORPEXBE1.arcadis-us.com>

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 at 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