Learn R Programming

SciencesPo (version 1.3.9)

timeplot: Make the ggplot2 version of TS plots

Description

The function produces TS plots using ggplot.

Usage

timeplot(ts, ylab = "", ylim = c(-1, 1), ci = 0.95, ...)

Arguments

ts
The TS object.
ylab
The y-axis title.
ylim
The y-axis limits.
ci
The desired confidence interval.
...
Ignored parameters passed to ggplot.

Examples

Run this code
ts.sim <- stats::arima.sim(n = 100, list(ma=0.8), innov=rnorm(100))
 timeplot(ts.sim)

Run the code above in your browser using DataLab