Entering edit mode
4.8 years ago
rbronste
▴
420
Hi I am trying to create a loess curve for two dataframes within the same plot with a different span value for each, not sure exactly how to go about that, here is my code thus far which adds the loess curve to both sets of data but with the same span value. Thanks.
ggplot(dplyr::bind_rows(frame_P1,frame_P2, .id = 'source'), aes(V1, V2, color = source)) + geom_point() + geom_smooth(method="loess", span=.13)