Skip to content

lattice: remove box around a wireframe

3 messages · Sundar Dorai-Raj, Thomas Roth (geb. Kaliwe)

#
#Hi,
#
#somebody knows how to  remove the outer box around a wireframe and 
reduce the height
#
#

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, par.box = c(col = "transparent") )  #not 
this one but the remaining outer box.

Thanks in advance

Thomas Roth
#
(Sorry for the repeat. Forgot to copy R-help)

Try,

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,
 par.settings = list(axis.line = list(col = "transparent")),
 par.box = c(col = "transparent") )

--sundar

On Wed, Mar 4, 2009 at 8:17 AM, Thomas Roth (geb. Kaliwe)
<hamstersquats at web.de> wrote:
#
:-) works!


Sundar Dorai-Raj schrieb: