Smoothed trend layer

geom_smooth(
  mapping = NULL,
  data = NULL,
  color = NULL,
  alpha = NULL,
  method = "loess",
  se = TRUE,
  linewidth = NULL,
  level = 0.95
)

Arguments

mapping, data, color, alpha

As in geom_point().

method

"loess" (default) or "lm".

se

Draw the confidence band.

linewidth

Trend line width.

level

Confidence level.

Value

A Layer.