Description Usage Arguments Value Examples
Plot time series object in ggplot
1 2 3 | plotTimeSeriesObject(xtsTimeSeriesObject, plotTitle = "Plot of Time Series",
yTitle = "Time Series Value", yLabelType = "comma", xTitle = "Date",
legendTitle = "Ticker", levels = "raw", interactive = FALSE)
|
xtsTimeSeriesObject |
an xts matrix of *levels* |
plotTitle |
character string of plot title |
yTitle |
character string of y-axis title |
yLabelType |
is a string, one of "dollar", "percent", "scientific", "comma"; defaults to comma |
xTitle |
title for x-axis, defaults to "Date" |
legendTitle |
title for legend, defaults to "Ticker" |
levels |
character string, one of "linear", "continuous" or "raw"; if "raw", passes the timeSeries as-is for plotting, othwerise, will convert vector into an index (e.g. Prices) based on the selection of "linear" or "continuous" returns; defaults to "raw" |
interactive |
logical, whether or not to render in plotly for interactive use of plot; defaults to FALSE |
a timeseries plot (ggplot)
1 | none
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.