我正在使用此link中的以下代码来为nlme::lmer
输出创建交互图:
ggplot(efdata1,
aes(x = DailyStressorOccurred, y = fit, color = PersMeanCent_DailyControl,
group = PersMeanCent_DailyControl)) +
geom_point() +
geom_line(size = 1.2) +
geom_ribbon(aes(ymin = fit - se, ymax = fit + se, fill = PersMeanCent_DailyControl),
alpha = 0.3) +
labs(title = "Reactivity by Daily Control Beliefs",
x = "Daily Stressor (0=Did not occur, 1=Occurred)",
y = "Negative Affect",
color = "Daily Control Beliefs",
fill = "Daily Control Beliefs") +
theme_classic() +
theme(text=element_text(size=20))
情节看起来是这样的:
我需要将显示(-13.71,13.71)的图像的右侧更改为PersMeanCent_DailyControl
的+ sd和-sd分别分别显示为'high'和low
。我该怎么办?
还有第二个问题:当我保存(导出)图像时,图像质量远低于原始网站链接中的图像质量。有没有办法提高保存图像的质量?