[R] Newbie question: setting rgl.surface plot attributes
murdoch at stats.uwo.ca
Thu Apr 13 00:08:49 CEST 2006
Joseph Retzer wrote:
> I don't seem to be able to label the x, y or z axis when creating a 3d chart
> using rgl.surface. I'd like to have them parallel to the axis line and move
> with the graph when rotated. Can this be done?
rgl.surface is a low level function for drawing a surface. It's more
like the lines() or points() functions in standard R graphics than like
persp(). With the current release of rgl, you can get scales using the
rgl.bbox function, but you'll need to manually label the axes yourself.
However, this situation will change soon. I've been adding a number of
features to rgl, so there's now a persp3d() function in the unreleased
version. I'm not sure when the release date will be, but hopefully not
too far in the future. If you want to test an unreleased version,
contact me off-list.
More information about the R-help