R/stats.R
stat_smooth.Rd
Fitted trend line with confidence band
stat_smooth(method = "loess", se = TRUE, n = 80, level = 0.95)
"loess" (default) or "lm".
"loess"
"lm"
Include the confidence band.
Number of grid points.
Confidence level.
A StatSmooth object, to pass as a layer's stat.
StatSmooth
stat