View source: R/plot.time.series.R
This is a custom plot function that operates on objects of class time.series
(which is the output generated from the rGARMA
function). This plot function generates a scatterplot matrix of time-series vectors using either ggplot
or base
graphics.
The user must input either a single time-series vector x
or a matrix x
where each row is one time-series vector. The function
generates a scatterplot matrix showing each of the time-series. If the plot is generated using ggplot
graphics then the user has an
option to include a background showing all points from all the series in grey. The user may choose to print or assign the object, or both.
Since the function generates a scatterplot of time-series plots, there are certain limits in the output. If the user attempts to generate
the plot for a time-series matrix with more than 36 time-series, the user will be prompted to continue and prompted about whether they want
to include the background. The prompts can be removed in the arguments of the function.
1 2 3 4 5 6 7 8 9 |
x |
A vector or matrix of time-series values (if a matrix, each time-series should be one row of the matrix) |
ggplot |
Logical; if |
background |
Logical; if |
print |
Logical; if |
user.prompt |
Logical; if |
... |
unused #@examples data(garma) plot(SERIES) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.