smoothLine

Edit pageLast modified: 15 July 2024

The smoothLine adds a smoothed line layer function optionally creates a new context with line aesthetics and new dataset which contains the "smooth" statistic calculated on sample of points (two numeric variables x and y). In this context, all required aesthetics are assigned by default but can be overridden.

It makes the line smoother through regression and sampling new points.