Fitted trend line with confidence band

stat_smooth(method = "loess", se = TRUE, n = 80, level = 0.95)

Arguments

method

"loess" (default) or "lm".

se

Include the confidence band.

n

Number of grid points.

level

Confidence level.

Value

A StatSmooth object, to pass as a layer's stat.