[R] lattice: remove box around wireframe (*follow-up*)
Marius Hofert
m_hofert at web.de
Sat Nov 27 18:59:14 CET 2010
Dear expeRts,
below is a minimal example from the thread
http://www.mail-archive.com/r-help@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@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")))
More information about the R-help
mailing list