chart.RollingPerformance(R, width = 12, xaxis = TRUE, legend.loc = NULL, colorset = (1:12), FUN = "Return.annualized", na.pad = TRUE, type = "l", pch = NULL, lty = 1, bg = NULL, cex = 1, lwd = 1, xlim = NULL, ylim = NULL, log = "", main = paste(width,"-Month Rolling Performance", sep=""), sub = NULL, xlab = NULL, ylab = NULL, ann = par("ann"), axes = TRUE, frame.plot = axes, panel.first = NULL, panel.last = NULL, asp = NA, ylog = FALSE, event.lines = NULL, event.labels = NULL, period.areas = NULL, event.color = "darkgray", period.color = "lightgray", darken = FALSE , date.format = "%m/%y", ...)
CAPM.beta
won't work, but Return.annualized
will)plot
, default FALSEplot
event.lines
should be a list of dates (e.g., c("09/03","05/06"))
formatted the same as date.format. This function matches thec("This Event", "That Event")
to the vertical lines drawnevent.labels
in the color specifiedlist(c("10/26","11/27"), c("08/29","03/33"))
See the examples below.period.areas
in the color specifiedplot
plot
plot
plot
plot
plot
plot
plot
charts.RollingPerformance
data(edhec)
chart.RollingPerformance(edhec[, 1:3], width = 24)
chart.RollingPerformance(edhec[, 1:3], width = 24, colorset = rich8equal, lwd = 2, legend.loc = "topleft")
Run the code above in your browser using DataLab