statSmooth
The statSmooth
function creates a new plotting context with new dataset which contains the "smooth" statistic calculated on sample of points (two numeric variables x and y). It interpolates data points to create a smoother curve.
Arguments
x
Required
Iterable Column String
The x
argument is used to provide the sample (or its x-part) on which the statistic is computed.
y
Required
Iterable Column String
The y
argument is used to provide the y-part of the sample on which the statistic is computed.
method
Optional
SmoothMethod
The method
argument is used to specify the smoothing method.
SmoothMethod.Linear(confidenceLevel: Double)
- linear model;SmoothMethod.Polynomial(degree: Int, confidenceLevel: Double)
- polynomial model;SmoothMethod.LOESS(span: Double, loessCriticalSize: Int, samplingSeed: Long, confidenceLevel: Double)
- Local Polynomial Regression model.
smootherPointCount
Optional
Int
The n
argument is used to specify the number of sampled points.
Statistic properties
In this context, there are the following statistical properties that can be used to create mappings, customize tooltips, etc.
Stat.x
Column<Double>
The Stat.x
contains points x-coordinate.
Stat.y
Column<Double>
The Stat.y
contains points y-coordinate.
Stat.yMin
Column<Double>
The Stat.yMin
lower point-wise confidence interval around the mean in this point.
Stat.yMax
Column<Double>
The Stat.yMax
upper point-wise confidence interval around the mean in this point.
Stat.se
Column<Double>
The Stat.se
contains standard error in this point.