Skip to content
Prev 281066 / 398503 Next

3d plotting alternatives. I like persp, but regret the lack of plotmath.

I'm not sure it is entirely responsive to the request, but I did hash  
out a way to add axis labels to car::scatter3d plots. There a worked  
example on SO:

http://stackoverflow.com/questions/8204972/carscatter3d-in-r-labeling-axis-better/8206320#8206320

The SO screenshot won't show that fact that the labels will  
appropriately twirl in 3 space in an RGL window. If you want the full  
code, then Ben Bolker has put it on his website which he referenced in  
a follow-up question:

http://stackoverflow.com/questions/8231007/having-trouble-executing-the-edits-to-scatter3d-default/

library(car)
source(url("http://www.math.mcmaster.ca/bolker/R/misc/scatter3d.R"))
scatter3d(prestige ~ income + education, data=Duncan)