[R] wireframe, axis label-axis separation, xlab rotation

Deepayan Sarkar deepayan.sarkar at gmail.com
Tue Feb 21 16:20:13 CET 2006


On 2/21/06, Joaquin Rapela <rapela at usc.edu> wrote:
> Greetings,
>
> A couple of questions:
>
> 1.
> I am using wireframe. It prints 3d plots nicely on screen, but when I use a
> postscript device the z-axis label merges with the z-axis. Is there any
> option
> to control their separation?
>
> 2.
> Again, using wireframe, I rotate the whole plot using the screen parameter.
> However, the x- and y-axis labels (xlab and ylab) remain horizontal. How
> could
> I rotate them?

Both are possible, e.g.

wireframe(volcano,
          scales = list(z = list(distance = 3)),
          zlab = list("volcano", rot = 90),
          zoom = 0.4)

(The documentation is a bit lacking of these details.)

Deepayan




More information about the R-help mailing list