在我的 PCA 脚本(如下)中,我总是得到 PC1 与 PC2 的图表。
mydata.pca <- prcomp(mydata.fixed, center = TRUE, scale. = TRUE)
g <- ggbiplot(mydata.pca, obs.scale = 1, var.scale = 1,
groups = mysamples, ellipse = FALSE,
circle = FALSE, var.axes=FALSE)
g <- g + scale_color_discrete(name = '')
g <- g + theme(legend.direction ='horizontal',
legend.position = 'top')
g <- g + theme_bw()
但是,当我运行类似:
summary(mydata.pca)
我看到了 PC1 到 PC4 的所有信息。如何更改我的 ggbioplot 脚本以获取 PC1 与 PC3 的图表?