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
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,
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 -
3 matches
Mail list logo