Re: [R] One main title and One legend for multiple lattice plots

2012-04-27 Thread Elliot
How would I do something like xyplot(y + z + w ~ x | v, groups = n, data = dat, main = "My Title", auto.key = TRUE) I want the output to be an array of panels, with a column for each value of v, a row for each of y, z, and w, and with each row having a different y-axis scale (but the same scale w

Re: [R] One main title and One legend for multiple lattice plots

2010-03-19 Thread Kim Jung Hwa
Ohh I got your point Deepayan, thats a stupid question from me. I can easilty rbind my four datasets, distuingusing them by a new variable, say "type", and then instead of plotting a 2D image, I can use a conditioning variable to plot a 3D image and achieve what I what. I'm sorry about this, thank

Re: [R] One main title and One legend for multiple lattice plots

2010-03-19 Thread Deepayan Sarkar
On Fri, Mar 19, 2010 at 8:37 AM, Kim Jung Hwa wrote: > Hi David, > > Thank you for your reply. I'm sorry if I've misconveyed my question: here it > goes again: > > *** I want a common "main title" and a common "legend" after I > output/print four different lattice plots on a single .wmf or .pdf fi

Re: [R] One main title and One legend for multiple lattice plots

2010-03-18 Thread Kim Jung Hwa
Hi David, Thank you for your reply. I'm sorry if I've misconveyed my question: here it goes again: *** I want a common "main title" and a common "legend" after I output/print four different lattice plots on a single .wmf or .pdf file*** Somewhat as in this image: http://www.ncl.ucar.edu/Training

Re: [R] One main title and One legend for multiple lattice plots

2010-03-18 Thread David Winsemius
On Mar 18, 2010, at 10:10 PM, Kim Jung Hwa wrote: Hi All, Can anyone please help me with getting a "single title" and "legend" for both the plots in the following R code. I'll eventually be using .wmf file. This is either incredibly simple or you have not explained what you reall want.

[R] One main title and One legend for multiple lattice plots

2010-03-18 Thread Kim Jung Hwa
Hi All, Can anyone please help me with getting a "single title" and "legend" for both the plots in the following R code. I'll eventually be using .wmf file. # R code: library(lattice) p1 <- xyplot(decrease ~ treatment, OrchardSprays, groups = rowpos, type = "a", main="Same title / legend",