Description Usage Arguments Value Examples
View source: R/xtsToDataFrame.R
A function to convert an xts object into a data frame that can be plotted usinfg ggplot2. The date column will be the first column of the new data frame and will have the name 'Date'. This function uses a recursive implementation for xts objects with many columns.
1 | xtsToDataFrame(xts.obj)
|
xts.obj |
an xts object. |
a dataframe suitable for plotting in ggplot2. Date will be first column.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.