DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
3d Bar Plot |
A three dimensional interactive barplot using plot3d from rgl:
mymat <- data.frame( x=c(1,1,1,2,2,2,3,3,3), y=c(1,2,3,1,2,3,1,2,3), z=c(1,2,3,4,5,6,7,8,9)) library(rgl) plot3d(mymat, type="h", xlab="xlabel", ylab="ylabel", zlab="zlabel", xlim=c(1,3), ylim=c(1,3), size=5, axes=FALSE, main="My Bar Plot") axis3d("x", at=1:3, labels=c("Low","Medium","High")) axis3d("y", at=1:3, labels=c("Green","Blue","Black")) grid3d("z", n=3) |