[R] Trying to tile wireframe plots (using lattice package)

From: Magnus Torfason <zulutime.net_at_gmail.com>
Date: Fri, 25 Jun 2010 14:49:43 -0400


Hi all,

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:
http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21238.html 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
library(lattice)
layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE))
# Top-left, as expected

plot(rnorm(100),rnorm(100))
# Top-right, as expected

plot(rnorm(100),rnorm(100))
# But the volcano fills the whole the device ...
wireframe(volcano)
## End of example

All has been to no avail up until now. I'd be grateful for any suggestions you may have.

Best,
Magnus

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.



R-help_at_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. Received on Fri 25 Jun 2010 - 18:53:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 25 Jun 2010 - 19:10:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive