Skip to content
Prev 205520 / 398506 Next

Lattice Plot formatting problem/s

fishman wrote:
Or rotate the z-label; see below.
Use the 'scales' argument; see below.
Use the 'scales' argument;

You don't provide reproducible code, so here's an example
from ?wireframe; it should give you the idea:

library(lattice)
wireframe(volcano, shade = FALSE,
   zlim=c(100,200),  ##modify the z-axis limits
   zlab=list("long_z_label", rot=90),  ##print z-label parallel
   scales=list(
      arrows=FALSE,
      z=list(at=c(100,150,200)),  ##where to put ticks and labels
      x=list(at=c(10,50,70))))

  -Peter Ehlers