pca3d worked with 3 dimension
0
0
Entering edit mode
3.0 years ago
yueli7 ▴ 250

Hello,

I want to show pca in three dimension with pca3d. It said "Creating new device". I am working in

yueli@yueli-ThinkStation-P330:~$ cat /proc/version
Linux version 5.11.0-40-generic (buildd@lgw01-amd64-010) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, 
GNU ld (GNU Binutils for Ubuntu) 2.34) #44~20.04.2-Ubuntu SMP Tue Oct 26 18:07:44 UTC 2021

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

I also tried:

plot3d(iris)

It said: Your browser does not support WebGL. See http://get.webgl.org

pca3d PCA • 588 views
ADD COMMENT

Login before adding your answer.

Traffic: 2364 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6