Description Usage Arguments Value Examples
The optimal span is calculated based upon the bayesian information criterion (BIC).
1 2 3 4 5 6 7 8 |
y |
a vector with measurement values to smooth |
x |
a vector with dates / time steps |
weights |
optional values to weigh the loess fit with |
step |
span increment size |
label |
title to be used when plotting function output |
plot |
plot visual output of the optimization routine |
Returns an optimal span to smooth a provided vector using the 'loess()' smoother.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.