Description Usage Arguments Value Author(s) Examples
A simple wrapper function for plotting time-series data with ggplot2.
1 2 |
X |
A matrix or data frame of size T x m containing the relevant time-series data, where m is the number of series. |
dates |
A T x 1 date or character vector containing the relevant date stamps for the data. |
rowdates |
A TRUE or FALSE statement indicating whether the row names of the X matrix contain the date stamps for the data. |
dates.format |
If ‘dates’ is not set to NULL, then indicate what format the dates are in, such as Year-Month-Day. |
save |
Whether to save the plot(s). |
height |
The height of the saved plot(s). |
width |
The width of the saved plot(s). |
Returns a plot of the data.
Keith O'Hara
1 2 3 4 5 | ## Not run:
data(BMRVARData)
gtsplot(USMacroData[,2:4],dates=USMacroData[,1])
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.