powered by
Trend estimation that uses stats::loess().
stats::loess()
ts_trend(x, ...)
ts-boxable time series, an object of class ts, xts, zoo, data.frame, data.table, tbl, tbl_ts, tbl_time, tis, irts or timeSeries.
ts
xts
zoo
data.frame
data.table
tbl
tbl_ts
tbl_time
tis
irts
timeSeries
arguments, passed to stats::loess():
degree degree of Loess smoothing
degree
span smoothing parameter, if NULL, an automated search performed (see Details)
span
NULL
# \donttest{ ts_plot( `Raw series` = fdeaths, `Loess trend` = ts_trend(fdeaths), title = "Deaths from Lung Diseases", subtitle = "per month" ) # }
Run the code above in your browser using DataLab