Joseph Retzer
2006-Apr-12 20:46 UTC
[R] Newbie question: setting rgl.surface plot attributes
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? Many thanks, J. Retzer [[alternative HTML version deleted]]
Duncan Murdoch
2006-Apr-12 22:08 UTC
[R] Newbie question: setting rgl.surface plot attributes
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. Duncan Murdoch