Skip to content
Back to formatted view

Raw Message

Message-ID: <7f50836c050901072912cd925f@mail.gmail.com>
Date: 2005-09-01T14:29:11Z
From: Jamieson Cobleigh
Subject: Spacing and margins in lattice...

Similar to my last question, I want to tighten up the spacing and
margins in a plot I am doing with lattice.

Here are the commands I'm using:

data <- data.frame(x=c(1:3, 1:3), y=c(1:3, 1:3*2),
cat=c("foo","foo","foo","bar", "bar","bar"))

xyplot(panel=panel.superpose, y~x, data=data, groups=cat, type="b",
scales=list(tck=c(2,0), axs="r", cex=c(1,0)))

I know that par(mar=c(2,2,1,1)) would do what I want with plot.  Is
there something similar for xyplot/lattice that can reduce the size of
the margins of the plot?

Thanks!

Jamie