Matthew A. H. Walters
2011-Feb-04 15:51 UTC
[R] Suppress only Z axis tick marks and numbers in wireframe statement
I actually have several questions revolving around the generation of
wireframe plots.
The most pressing is that which is described by the subject line.
I am trying to produce a figure with x, y, and z labels, but only tick marks
on the x, and y axes. I have supplied sample code below substituting the
volcano data set for my own such that you may run the code and see the
results. Obviously the main title and labels don't make sense given the
data as a result. To be clear, my problem is that I don't wish the z axis
tick mark to appear at all, not that they intersect with the Z label.
Thanks in advance for any help.
Matt
CODE:
require(lattice)
trellis.par.set("axis.line", list(col="transparent"))
wireframe(volcano,
main="Correlated Beta Distributions",type='n',
xlab=list("Egg Survival",rot=-18),
ylab=list("Nestling Survival",rot=50),
zlab=list("Density",rot=95),#zaxt="n",
screen=list(z=-30,x=-60,y=0),light.source=c(90,-15,90),
scales=list(arrows=F,distance=c(.75,.75,0.25),
cex=1,col="black"),
aspect=c(1,.4),shade=T,colorkey=F,
shade.colors = function(irr, ref, height, w = .4)
grey(w * irr + (1 - w) * (1 - (1 - ref)^0.4)))
[[alternative HTML version deleted]]
Deepayan Sarkar
2011-Feb-08 09:55 UTC
[R] Suppress only Z axis tick marks and numbers in wireframe statement
On Fri, Feb 4, 2011 at 9:21 PM, Matthew A. H. Walters <walte2ma at ufl.edu> wrote:> I actually have several questions revolving around the generation of > wireframe plots. > > > > The most pressing is that which is described by the subject line. > > > > I am trying to produce a figure with x, y, and z labels, but only tick marks > on the x, and y axes. ?I have supplied sample code below substituting the > volcano data set for my own such that you may run the code and see the > results. ?Obviously the main title and labels don't make sense given the > data as a result. ?To be clear, my problem is that I don't wish the z axis > tick mark to appear at all, not that they intersect with the Z label.Try scales=list(arrows=F,distance=c(.75,.75,0.25), cex=1,col="black", z = list(draw = FALSE)), -Deepayan> > > > Thanks in advance for any help. > > > > Matt > > > > CODE: > > > > require(lattice) > > trellis.par.set("axis.line", list(col="transparent")) > > wireframe(volcano, > > ? ? ? ? ?main="Correlated Beta Distributions",type='n', > > ? ? ? ? ?xlab=list("Egg Survival",rot=-18), > > ? ? ? ? ?ylab=list("Nestling Survival",rot=50), > > ? ? ? ? ?zlab=list("Density",rot=95),#zaxt="n", > > ? ? ? ? ?screen=list(z=-30,x=-60,y=0),light.source=c(90,-15,90), > > ? ? ? ? ?scales=list(arrows=F,distance=c(.75,.75,0.25), > > ? ? ? ? ? ? ? ? ? ? ?cex=1,col="black"), > > ? ? ? ? ?aspect=c(1,.4),shade=T,colorkey=F, > > ? ? ? ? ?shade.colors = function(irr, ref, height, w = .4) > > ? ? ? ? ? ?grey(w * irr + (1 - w) * (1 - (1 - ref)^0.4))) > > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > 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. >
Possibly Parallel Threads
- wireframe shade=T colorkey
- [lattice] Increase distance between tick labels and ticks in wireframe plot ("pad")
- Changing Tick Mark Values for lattice / wireframe
- Trying to tile wireframe plots (using lattice package)
- wireframe, axis label-axis separation, xlab rotation