ts_plot | R Documentation |
plot time series with smooth trend
ts_plot(x, time = 1:length(x))
x |
numeric, a time series |
time |
numeric, the time points of the time series (default '1:n' where 'n' is length of series) |
a ggplot plot
Ken Butler, butler@utsc.utoronto.ca
set.seed(457299)
x=rnorm(100) # uncorrelated
x=x+0.02*(1:100) # with trend
ts_plot(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.