Calculates a smoothed fit for a set of values, a span value can be set / found by using optimal_span()
1 | smooth_function(x = NULL, y = NULL, span = 0.4)
|
x |
a vector with dates / time steps |
y |
a vector with measurement values to smooth |
span |
optional values to weigh the loess fit with |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.