【问题标题】:change the size of a CA factor map in R?更改 R 中 CA 因子映射的大小?
【发布时间】:2022-01-16 13:41:37
【问题描述】:

我正在做 MCA 分析,我找到了一个绘图图。 但是,我不能改变它的大小,请问有人有想法吗?

library("FactoMineR")
mca=CA(data_mca)
mca
plot.CA(mca,invisible = c("row"))#this line gives me the plot

【问题讨论】:

    标签: r plot


    【解决方案1】:

    我使用windows() 并单独创建了情节

    library(FactoMineR)
    data("decathlon")
    mca=CA(decathlon,quanti.sup = 10:12,quali.sup = 13)
    
    windows() # if you want to change the size then windows(width=10, height=4)
    plot(res,choix="var", shadow = T, title="", cex = 1.2, cex.lab = 1.3)
    

    原图:

    library(FactoMineR)
        data("decathlon")
        mca=CA(decathlon,quanti.sup = 10:12,quali.sup = 13)
        
        windows(width=10, height=4) # changed the size and width
        plot(res,choix="var", shadow = T, title="", cex = 1.2, cex.lab = 1.3)
    

    调整后的情节:

    【讨论】:

      猜你喜欢
      • 2014-03-30
      • 2014-09-11
      • 2011-04-16
      • 2020-11-25
      • 2019-11-10
      • 1970-01-01
      • 1970-01-01
      • 2021-04-17
      • 2019-01-02
      相关资源
      最近更新 更多