powered by
plotTimeSeries is a function for visualizing time series
plotTimeSeries(X, Y, strTitle = "Time Series Plot", TSnames)
This function returns an object of ggplot class.
is a 1st numerical time series
is a 2nd numerical time series. If it is not supplied, the function plots only X.
X
is a string of the plot title
is a list of legend of X,Y where TSnames[1] is a legend of X and TSnames[2] is a legend of Y.
X,Y
Y
# Generate simulation data TS <- SimpleSimulationVLtimeseries() # Run the function plotTimeSeries(Y=TS$Y,X=TS$X)
Run the code above in your browser using DataLab