为了显示我的PCA(使用FactomineR)的结果的特定功能,我试图用factoextra包来操纵个体和biplot的情节 .

我想在我的个体周围绘制省略号,但它们属于10个不同的组,结果不易读取,所以我想 select the more representative groups for drawing ellipses, while keeping all the individuals represented on the graphs (作为点名称) .

到目前为止,我还没有成功地保持两者(没有椭圆形个体的人)尝试这种事情

fviz_ellipses(res.pca, select.list= list(name= "active.ind"),  habillage = DF$Group, addEllipses = T)

使用 active.ind 所选行(个体)的向量 .

我尝试在ggplot2中添加像geom一样的省略号,就像这样

fviz_pca_ind(res.pca, repel = T)+
fviz_ellipses(res.pca, select.list= list(name= "active.ind"),  habillage = DF$Group, addEllipses = T)

但它返回错误 Error: Don't know how to add o to a plot

我也想知道是否有任何方法 separate the colours of the individuals and the ellipses, having colours matching a group and ellipses matching another (将有一个彩色圆圈椭圆分组不同颜色的点): habillageaddEllipses 似乎总是一起工作,但有没有其他方法来添加scale_color或类似的东西和让它胜过 habillage

我能想到的更容易的事情是添加省略号作为一个独立的对象,虽然我不知道如何做到这一点 .

任何想法都会非常受欢迎 . 谢谢 !