[R] is it possible to create a trellis object with multiple colorkeys/z-scale axis?

2013-02-04 Thread Ryan Flaherty
Dear R users- Do the lattice/latticeExtra packages support multiple tileplots with unique colorkeys? I am trying to create a visualization of the encounter rate of certain stocks of salmon across two years. The issue I am having is that some stocks are encountered at much higher rates than

Re: [R] is it possible to create a trellis object with multiple colorkeys/z-scale axis?

2013-02-04 Thread Richard M. Heiberger
This will get you started library(lattice) library(latticeExtra) D1 - data.frame(y=1:3, x=4:6) D2 - data.frame(y=7:10, x=11:14) T1 - xyplot(y ~ x, data=D1, key=list(space=right, text=list(LETTERS[1:3], col=c(red,green,blue T2 - xyplot(y ~ x, data=D2,

Re: [R] is it possible to create a trellis object with multiple colorkeys/z-scale axis?

2013-02-04 Thread Richard M. Heiberger
On further thought, this might be better as it keeps the keys distinct library(lattice) library(latticeExtra) D1 - data.frame(y=1:3, x=4:6) D2 - data.frame(y=7:10, x=11:14) T1 - xyplot(y ~ x, data=D1, key=list(space=right, text=list(LETTERS[1:3], col=c(red,green,blue T2 -