【问题标题】:sjPlot plot_model distance between linessjPlot plot_model 线之间的距离
【发布时间】:2019-01-27 13:06:26
【问题描述】:

我使用 sjPlot 包和以下命令绘制了这个图:

plot_model(fit, type = "pred", terms = c("degree_of_urbanization", "language"), dot.size = 2) + labs(y = "NEFI Overall Score", x = "Degree of urbanization", title = "Predicted values of NEFI Overall Score")

如何更改这些线之间的距离。它们太近了,我不想让我的情节更宽。

【问题讨论】:

    标签: sjplot


    【解决方案1】:

    使用类似 dodge = .5 的东西。 sjPlot 只是为边际效应图包装了 ggeffects。 plot_model() 的一些参数被传递给 ggeffects plot() 方法。见https://strengejacke.github.io/ggeffects/reference/plot.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-22
      • 2013-07-17
      • 2017-07-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多