我目前正在尝试使用ggplot函数从两个虚线中选出两个。该图是显示属于两个不同因子组的两条回归线的图。我已经能够使其中一条虚线变为虚线,但是我很难使另一条虚线带有虚线。任何帮助将不胜感激。
coli_means %>%
ggplot(aes(time,mean_heartrate,group = treatment)) +
geom_point( aes(group = treatment,color = treatment)) +
geom_smooth(aes(method = "loess",linetype = treatment,se = FALSE,group = treatment,color = treatment,show.legend = TRUE))
我觉得我缺少一种简单的输入。谢谢。