Alexander Schwall
2010-Feb-17 19:09 UTC
[R] Different colors for different groups in lattice wireframe
Hello,
I have trouble with the following: I am trying do display two groups in a
wireframe using two different color schemes. I have been able to display the
two groups, but the color scheme for both is identical. I would like to
display one group in a color scheme red-yellow (or whatever) and the other
on green-blue.
Any thoughts?
totalViolation <- wireframe(pViol ~ sr * pool, data=combo,
groups = stat, #shade=TRUE,
drape=TRUE, colorkey=TRUE,
scales = list(arrows=FALSE,
x=list(at=c(0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8)),
y=list(rot=0, at=c( 1000, 5000, 10000, 20000)),
cex= 1, col="red", font = 1, tck=1),
screen =list(z = -240, x=-60),
aspect=c(1.2, 0.9),
xlab = expression(paste(sr)),
ylab = expression (paste(pool)),
zlab ="P(Viol)",
zlim= range(seq(0.0, 1.0, by = 0.05)))
totalViolation
Thanks,
Alexander
[[alternative HTML version deleted]]