Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的情节中包含百分比PC1,PC2可以直接使用自动绘图吗?
PC1
PC2
plotPCA <- autoplot(prcomp(df),data=b, colour="labs")
也许是这样的:
data("iris") PCA = prcomp(iris[-5]) dfdf = stats:::summary.prcomp(PCA)$importance[2, ] plotPCA <- autoplot(ts(dfdf)) plotPCA