Marius Hofert
2010-Nov-27 17:59 UTC
[R] lattice: remove box around wireframe (*follow-up*)
Dear expeRts, below is a minimal example from the thread http://www.mail-archive.com/r-help at r-project.org/msg48098.html about how to remove the outer box / frame of a wireframe plot. As one can see, the suggested code does remove the box (by making it transparent), however, it also removes the axis tickmarks. Is there a simple workaround? Cheers, Marius test = data.frame(expand.grid(c(1:10), c(1:10))) z = test[,1] + test[,2] test = cbind(test, z) names(test) = c("x", "y", "z") require(lattice) wireframe(z ~ x*y, data = test, scales = list(arrows = FALSE)) ## removes the outer box / frame (as described in ## http://www.mail-archive.com/r-help at r-project.org/msg48098.html), ## but also removes the tick marks... wireframe(z ~ x*y, data = test, scales = list(arrows = FALSE), par.settings = list(axis.line = list(col = "transparent")))
Marius Hofert
2010-Nov-27 18:33 UTC
[R] lattice: remove box around wireframe (*follow-up*)
okay, solved :-)) It is mentioned here: http://r.789695.n4.nabble.com/How-to-remove-outer-box-from-Wireframe-plots-td824819.html so ... wireframe(z ~ x*y, data = test, scales = list(col = "black", arrows = FALSE), par.settings = list(axis.line = list(col = "transparent"))) ... solves it. Cheers, Marius