Plot fo the time series and its smoothed version in ggplo
It plots the univariate or bivariate time series and its smoothed version (trend) using ggplot. It directly uses the output of trend_estimate.
plot_trend(smoothedTS, title = NULL, xlab = "Time", ylab = names(dat)[1:2])
smoothedTS
: Is an object generated by the function trend_estimatetitle
: Main title of the graphxlab
: Common x labelylab
: A 2-length vector of characters.The ggplot of the original time series, their treind and its approximated 95
Useful links