plot_trend function

Plot fo the time series and its smoothed version in ggplo

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])

Arguments

  • smoothedTS: Is an object generated by the function trend_estimate
  • title: Main title of the graph
  • xlab: Common x label
  • ylab: A 2-length vector of characters.

Returns

The ggplot of the original time series, their treind and its approximated 95

  • Maintainer: L. Leticia Ramirez-Ramirez
  • License: GPL-3
  • Last published: 2019-07-15

Useful links