[R] Spacing and margins in lattice...

Jamieson Cobleigh cobleigh at gmail.com
Thu Sep 1 16:29:11 CEST 2005

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?



More information about the R-help mailing list