我用过
biplot(prcomp(data, scale.=T), xlabs=rep("·", nrow(data)))但是省略标签是行不通的。即使我去掉标签,我的图也是如此的混乱和丑陋,这可以在下面看到!我还需要显示轴上PC的百分比

我使用以下命令绘制图像
biplot(prcomp(data, scale.=T), xlabs=rep("·", nrow(data)), ylabs = rep("·", ncol(data)))发布于 2015-02-09 23:12:28
试试这个
\devtools::install_github("sinhrks/ggfortify")
library(ggfortify)
ggplot2::autoplot(stats::prcomp(USArrests, scale=TRUE), label = FALSE, loadings.label = TRUE)

https://stackoverflow.com/questions/28412832
复制相似问题