[R] Trying to tile wireframe plots (using lattice package)
zulutime.net at gmail.com
Fri Jun 25 20:49:43 CEST 2010
I'm trying to print a number of wireframe plots (generated using the
lattice package), and I want them to appear in a two-by two matrix along
with some other (standard) plots. In other words I am trying to create a
subplot or tiled plot that works for wireframes.
I've tried the methods discussed in:
but while they work for hist(), they don't work for wireframe().
I've also tried split.screen() and layout() - see below:
## Example of what I'm trying to do
layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE))
# Top-left, as expected
# Top-right, as expected
# But the volcano fills the whole the device ...
## End of example
All has been to no avail up until now. I'd be grateful for any
suggestions you may have.
ps. If there is a way to do this using intermediate files (saving each
plot as a PS file, and then tiling multiple PS files within the same
device), that would be a totally acceptable solution for me as well.
More information about the R-help