【发布时间】:2019-01-21 12:30:49
【问题描述】:
library(tidyverse)
ggplot(mpg, aes(cty, hwy)) +
geom_point() +
geom_smooth(method = lm)
我想要两条紫色线平行于我的geom_smooth(method = lm) 线。每行应与geom_smooth(method = lm) 行相距10 个单位。一行在geom_smooth(method = lm) 行的上方,另一行在geom_smooth(method = lm) 行的下方。
我该如何做到这一点?
【问题讨论】: