loess
Fill region between two loess-smoothed lines in R with ggplot
A possible solution where the loess smoothed data is grabbed from the plot object and used for the geom_ribbon: # create plot object with loess regression lines g1 <- ggplot(df) + stat_smooth(aes(x = x, y = ymin, colour = “min”), method = “loess”, se = FALSE) + stat_smooth(aes(x = x, y = ymax, colour = … Read more