Adds a curve of time series data to an existing time series plot.
plotAddTS([myPlot, ]dtstart, frequency, y)¶
myPlot (struct) – Optional argument. A
dtstart (scalar) – starting date in DT scalar format.
frequency (scalar) –
frequency of the data per year. Valid options include:
y (Nx1 or NxM matrix) – Each column contains the Y values for a particular line.
// Create some data to plot y = rndn(100, 1); // The first input starts the series in January of 1982 // The second input specifies the data to be monthly plotTS(1982, 12, y); y2 = rndu(28, 1); // Add the data from 'y2' as quarterly data // starting in Q2 of 1980 plotAddTS(198004, 4, y2);
You may only add time series graphs to other time series graphs. For more information on time series graphs, see Time Series Plots in GAUSS, Section 1.1.
By default missing values in the y variable will be represented as gaps in the line.