Description Usage Arguments Examples
This function allows you to plot timeseries and is based on xts::plot.xts rather than base graphics.
1 2 3 4 5 6 7 8 9 10 11 | new.chart.TimeSeries(R, auto.grid = TRUE, xaxis = TRUE, yaxis = TRUE,
yaxis.right = FALSE, type = "l", lty = 1, lwd = 2, las = par("las"),
main = NULL, ylab = NULL, xlab = "", date.format.in = "%Y-%m-%d",
date.format = NULL, xlim = NULL, ylim = NULL,
element.color = "darkgray", event.lines = NULL, event.labels = NULL,
period.areas = NULL, event.color = "darkgray",
period.color = "aliceblue", colorset = (1:12), pch = (1:12),
legend.loc = NULL, ylog = FALSE, cex.axis = 0.8, cex.legend = 0.8,
cex.lab = 1, cex.labels = 0.8, cex.main = 1, major.ticks = "auto",
minor.ticks = TRUE, grid.color = "lightgray", grid.lty = "dotted",
xaxis.labels = NULL, ...)
|
R |
an xts, vector, matrix, data frame, timeSeries or zoo object of |
auto.grid |
if true, draws a grid aligned with the points on the x and y axes |
yaxis.right |
if true, draws the y axis on the right-hand side of the plot |
type |
set the chart type, same as in |
lty |
set the line type, same as in |
lwd |
set the line width, same as in |
las |
set the axis label rotation, same as in |
main |
set the chart title, same as in |
ylab |
set the y-axis label, same as in |
date.format.in |
allows specification of other date formats in the data object, defaults to "%Y-%m-%d" |
date.format |
re-format the dates for the xaxis |
xlim |
set the x-axis limit, same as in |
ylim |
set the y-axis limit, same as in |
element.color |
provides the color for drawing chart elements, such as the box lines, axis lines, etc. Default is "darkgray" |
colorset |
color palette to use, set by default to rational choices |
pch |
symbols to use, see also |
legend.loc |
places a legend into one of nine locations on the chart: bottomright, bottom, bottomleft, left, topleft, top, topright, right, or center. |
ylog |
TRUE/FALSE set the y-axis to logarithmic scale, similar to
|
cex.axis |
The magnification to be used for axis annotation relative to
the current setting of 'cex', same as in |
major.ticks |
Should major tickmarks be drawn and labeled, default 'auto' |
grid.color |
sets the color for the reference grid |
grid.lty |
defines the line type for the grid |
xaxis.labels |
Allows for non-date labeling of date axes, default is NULL |
... |
any other passthru parameters |
1 2 3 4 5 | library(xtsPerAnl)
library(xts) #library(xtsExtra)
library(PerformanceAnalytics)
data(managers)
new.chart.TimeSeries(managers)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.