R language Access Menu

Rotatable 3d plots with principal component analysis

Code:

> library(rgl)
> library(bpca)
> plot(bpca(birthwt, d=1:3), rgl.use=T, var.factor=3)

Above code produces following plot of first 3 components of principal component analysis in separate window, where it can be rotated using mouse and its left button: 

                             

Following is the rotated version of above plot: 

               


    Comments & Feedback