【问题标题】:how to avoid overlap text in result of PCA biplot如何避免 PCA 双图结果中的重叠文本
【发布时间】:2022-10-20 01:23:49
【问题描述】:

下面的情节是从这个脚本中获得的,但是大部分文本是重叠的,我想单独显示。

fviz_pca_biplot(res.pca,
                labelsize=3,
                addEllipses = T,
                repel=F,
                # Individuals
                geom.ind = "point",
                geom.var = c("point", "text"),
                fill.ind = data$Species,
                pointshape = 21 ,
                pointsize = 2,
                alpha.ind=0.4,
                # Variables
                alpha.var =1, 
                legend.title = list(fill = "Species"))+
  
  guides(color=guide_legend("Species"),fill= F)

【问题讨论】:

    标签: r ggplot2 pca ggrepel factoextra


    【解决方案1】:

    尝试改变:

    repel=F
    

    repel=T
    

    【讨论】:

      猜你喜欢
      • 2021-08-10
      • 2021-07-14
      • 2011-05-22
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 2023-04-06
      • 1970-01-01
      • 2019-12-07
      相关资源
      最近更新 更多