[R] lattice: remove box around a wireframe

Sundar Dorai-Raj sdorairaj at gmail.com
Wed Mar 4 18:25:25 CET 2009


(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.
>




More information about the R-help mailing list