[R] different colors for two wireframes in same plot

marcg mdgi at gmx.ch
Thu Sep 27 09:21:57 CEST 2007


Hello R,

According to:

g <- expand.grid(x = 1:10, y = 5:15, gr = 1:2)
g$z <- log((g$x^g$g + g$y^2) * g$gr)
wireframe(z ~ x * y, data = g, groups = gr,
          scales = list(arrows = FALSE),
          drape = TRUE, colorkey = TRUE,
          screen = list(z = 30, x = -60))

i have two wireframes in one plot.

How could i change the color of the top - one to transparent (or only the grid). I want to give insight to the lower layer.

Could one make an if-statment like (if gr==1 do drape=F or color=none) if gr=2 do drape=T, colorkey=T)

Thanks for your help

Marc

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kanns mit allen: http://www.gmx.net/de/go/multimessenger



More information about the R-help mailing list