[R] Wireframe axis labels

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Mar 14 09:22:06 CET 2006


Cashorali, Tanya wrote:

> Hi, 
> I'm trying to do a surface plot using the wireframe function.
> Everything is working beautifully except that I want to be able to
> re-scale it a LOT so that I can fit ~145 labels on the x-axis or y-axis.
> I've tried using zoom, scales, aspect, .. nothing seems to work.  The
> help on wireframe in R says that you can input a list of labels for any
> of the axes, but this has also failed.


Hmmmm, you can do so, but I do not believe you really want 145 labels....:


g <- expand.grid(x = 1:145, y = 1:145, gr = 1:2)
g$z <- log((g$x^g$g + g$y^2) * g$gr)

wireframe(z ~ x * y, data = g, groups = gr,
           scales = list(arrows = FALSE, at=1:145))

Uwe Ligges

> Thanks for any help!
> -Tanya
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list