【发布时间】:2020-06-26 11:48:57
【问题描述】:
这是我的代码
plot_model(mylogit, type = "pred", terms = c("ScoreEnvAtt [all]", "Guilt")) +
scale_colour_discrete(guide = guide_legend(title = "Guilt"), labels = c("Low", "Medium", "High")) +
scale_fill_discrete(guide = guide_legend(title = "Guilt"), labels = c("Low", "Medium", "High")) +
labs( title = "",
x = "Environmental Attitudes",
y = "Probability of choosing the green investment") + theme_gray(base_size = 14) +
theme(text=element_text(family="Times New Roman", size=12))
如何消除两个间隙,使 x 轴从 3 开始到 7 结束?
【问题讨论】:
-
如果这里的某些专业人士在情节中看到一些视觉上令人讨厌的东西并告诉我如何使它变得更好,我也非常感谢 - 我正在将它用于我的论文。
-
这能回答你的问题吗? Force the origin to start at 0
-
@AdamQuek 啊,是的,这就是下面其他人提出的解决方案,谢谢!!
-
@BappaDas 我以前看过这个帖子,但是没有用。