ggplot2 loess curve application to 2 dataframes
0
0
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)
ggplot2 ggplot • 801 views
ADD COMMENT

Login before adding your answer.

Traffic: 2582 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6