stat option, and default to identity (draw the data as-is).
Available stats
Trendlines with smooth
The smooth stat fits a regression through a layer’s points — the basis for trendlines. Add it to a second geom.line() layer over your raw data:
method selects the regression family:
method
'linear' | 'loess' | 'exponential' | 'logarithmic' | 'quadratic' | 'power' | 'polynomial'
required
The regression method to fit.
Polynomial order — only used when
method: 'polynomial'.Smoothing bandwidth — only used when
method: 'loess'.A mean reference line
Pairstat.mean() with geom.rule() to draw a horizontal line at a series’ average:
Next
- Transforms — reshape data before it reaches a stat
- Geoms & layers — where the
statoption lives

