首页 > 解决方案 > sjPlot plot_model 线之间的距离

问题描述

我使用 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

解决方案


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


推荐阅读