[R] Changing direction of an axis in cloud or wireframe plot
benny.dean at gmail.com
Tue Feb 2 01:44:10 CET 2010
Is there a way to change the direction in which an axis is plotted in
For example, for the following code:
g <- expand.grid(x = 1:10, y = 5:15, 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),
drape = TRUE, colorkey = TRUE,
screen = list(z = 80, x = -60))
Is there a way to make the y-axis increase from left to right (i.e.,
increase from 6 to 14)? I'd like to maintain the same screen position,
with the x-axis increasing as it moves away.
Thanks for any help!
More information about the R-help