The Lattice book shows different uses of the layout and between parameters in the early examples in chapter 2. Why not go to the book's website and take a look?

--
David.
On Sep 19, 2009, at 12:42 PM, Larry White wrote:

Hi,

I'm trying to create a lattice plot with three xyplots in one vertical
column. I would like to reduce the vertical space between the charts. My code is below. There seems to be a "between" parameter for lattice.options, but I can't find any examples. Aside from the data setup, the code is below. Can anyone provide an example showing how to reduce the white space between
the charts?  Thanks.

total_chart <- xyplot(total ~ date,
xlab=list(label=""),
ylab=list(label="Total Work")
)

balance_chart <- xyplot(bal ~ date,
xlab=list(label=""),
ylab=list(label="Remaining Work")
)

index_chart <- xyplot(index ~ date,  col="red", type="b", pch=15)

print(total_chart, split=c(1,1,1,3),   position=c(0, 0, 1, 1),
newpage=FALSE, more=TRUE)
print(balance_chart, split=c(1,2,1,3), position=c(0, 0, 1, 1),
newpage=FALSE, more=TRUE)
print(index_chart, split=c(1,3,1,3), position=c(0, 0, 1, 1), newpage=TRUE,
more=FALSE)

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to