[R] Suppress only Z axis tick marks and numbers in wireframe statement

Deepayan Sarkar deepayan.sarkar at gmail.com
Tue Feb 8 10:55:21 CET 2011


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



More information about the R-help mailing list