pca3d worked with 3 dimension

pca3d worked with 3 dimension

0

Hello,

I want to show pca in three dimension with pca3d.

But I can not see anything. It said “Creating new device”.

Thank you in advance for great help!

Best,

Yue

library(pca3d)
library(rgl)
data( metabo )
 pca <- prcomp( metabo[,-1], scale.= TRUE )
pca3d( pca, group= metabo[,1], 
        fancy= TRUE, bg= "black", 
      axes.color= "white", new= TRUE )
[1] 0.3439618 0.4500414 0.2818377
Creating new device


q

• 22 views

Read more here: Source link