Skip to content
Back to formatted view

Raw Message

Message-ID: <422F4EFC.2050904@pdf.com>
Date: 2005-03-09T19:31:08Z
From: Sundar Dorai-Raj
Subject: Lattice device page options-margins
In-Reply-To: <0016F5677B1F1D4281EEBC034993595102728A15@CORPEXBE1.arcadis-us.com>

Bock, Michael wrote on 3/9/2005 1:19 PM:
> 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,

I believe you can do this using print.trellis and setting the position 
argument. E.g.

trellis.device(device = "pdf",file = "Figure6.pdf",color = FALSE)
xy <- xyplot(...)
print(xy, pos = c(0.10, 0, 1, 1))
dev.off()

--sundar