Thomas Roth (geb. Kaliwe)
2009-Mar-04 16:17 UTC
[R] lattice: remove box around a wireframe
#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:> #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 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >
Thomas Roth (geb. Kaliwe)
2009-Mar-04 17:47 UTC
[R] lattice: remove box around a wireframe
:-) works! Sundar Dorai-Raj schrieb:> (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: > >> #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 >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> >> > >