ts_plot: plot time series with smooth trend

View source: R/ts_plot.R

ts_plotR Documentation

plot time series with smooth trend

Description

plot time series with smooth trend

Usage

ts_plot(x, time = 1:length(x))

Arguments

x

numeric, a time series

time

numeric, the time points of the time series (default '1:n' where 'n' is length of series)

Value

a ggplot plot

Author(s)

Ken Butler, butler@utsc.utoronto.ca

Examples

set.seed(457299)
x=rnorm(100) # uncorrelated
x=x+0.02*(1:100) # with trend
ts_plot(x)


nxskok/mkac documentation built on Jan. 15, 2024, 4:02 a.m.