Wow, that worked liked a charm. I will include the entire working example of
how to remove the outer box without losing the ticks:
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
se small details can be difficult
to nail down.
>
> --Seth
>
> -Original Message-
> From: ila...@gmail.com [mailto:ila...@gmail.com] On Behalf Of ilai
> Sent: Friday, March 23, 2012 11:10 AM
> To: Bigelow, Seth W -FS
> Cc: r-help@r-project.org
> Subject: Re: [R] Remove wireframe ou
@gmail.com [mailto:ila...@gmail.com] On Behalf Of ilai
Sent: Friday, March 23, 2012 11:10 AM
To: Bigelow, Seth W -FS
Cc: r-help@r-project.org
Subject: Re: [R] Remove wireframe outer box but keep ticks
See 'box.3d' in trellis.par.get() :
wireframe(z ~ x*y, data = test,
scales=list(arro
See 'box.3d' in trellis.par.get() :
wireframe(z ~ x*y, data = test,
scales=list(arrows=F),
par.settings = list(box.3d = list(col=NA)))
Note you can have some finer control:
wireframe(z ~ x*y, data = test,
scales=list(arrows=F),
par.settings = list(box.3d = list(col=c(1,2,NA,NA,3,NA,4,5,6)))
)
I would like to eliminate the outer box around a lattice wireframe graph, but
the usual recommended solution, which is to assign a color of 'transparent' to
the axis.line parameter,
eliminates ticks if the 'arrows=F' command is used, as shown in the following
example:
test = data.frame(expand.g
5 matches
Mail list logo