plotTimeSeries: plotTimeSeries

Description Usage Arguments Value Examples

View source: R/plotTimeSeries.R

Description

plotTimeSeries is a function for visualizing time series

Usage

1
plotTimeSeries(X, Y, strTitle = "Time Series Plot", TSnames)

Arguments

X

is a 1st numerical time series

Y

is a 2nd numerical time series. If it is not supplied, the function plots only X.

strTitle

is a string of the plot title

TSnames

is a list of legend of X,Y where TSnames[1] is a legend of X and TSnames[2] is a legend of Y.

Value

This function returns an object of ggplot class.

Examples

1
2
3
4
# Generate simulation data
TS <- SimpleSimulationVLtimeseries()
# Run the function
plotTimeSeries(Y=TS$Y,X=TS$X)

VLTimeCausality documentation built on Jan. 24, 2022, 5:07 p.m.