sjplot - 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")
我怎样才能改变这些线之间的距离。它们太近了,我不想让我的情节更广泛。
解决方案
使用类似 dodge = .5 的东西。sjPlot 只是为边际效应图包装了 ggeffects。plot_model() 的一些参数被传递给 ggeffects plot() 方法。见https://strengejacke.github.io/ggeffects/reference/plot.html
推荐阅读
- spring - 在 Spring 应用程序中测试 GCP 发布者重试设置
- c# - 如何将图像名称保存在mysql数据库中,然后用C#将图像上传到wamp服务器
- php - $_SESSION 摧毁德国元音变音
- python - 如何检测和删除那些复杂的表情符号?
- java - 如何在 Java 中打印不带分号的 Hello World?
- c++ - 调整轮廓大小/纠正不完整的轮廓 OpenCV
- sql-server - 连接到远程 SQL Server 时出现问题
- python-3.x - 我在这里尝试做的是调用一个类的构造函数。但这给了我一个错误。它是说:missing1 需要位置参数
- excel - 在保持字体颜色格式的同时拆分 Excel 单元格字符串
- sql - 创建一周内活动天数的分布。SQL