\HeaderA{chart.RollingMean}{chart the rolling mean return}{chart.RollingMean}
\keyword{ts}{chart.RollingMean}
\keyword{multivariate}{chart.RollingMean}
\keyword{distribution}{chart.RollingMean}
\keyword{models}{chart.RollingMean}
\keyword{hplot}{chart.RollingMean}
\begin{Description}\relax
A wrapper to create a rolling mean return chart with 95\% confidence bands.
\end{Description}
\begin{Usage}
\begin{verbatim}
chart.RollingMean(R, width = 12, xaxis = TRUE, ylim = NULL, na.pad =
FALSE, lwd = c(2, 1, 1), ...) \end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{R}] an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns 
\item[\code{width}] number of periods to apply rolling function window over 
\item[\code{xaxis}] if true, draws the x axis 
\item[\code{ylim}] set the y-axis limit, same as in \code{\LinkA{plot}{plot}} 
\item[\code{na.pad}] TRUE/FALSE If TRUE it adds any times that would not otherwise have been in the result with a value of NA. If FALSE those times are dropped. 
\item[\code{lwd}] set the line width, same as in \code{\LinkA{plot}{plot}}.  Specified in order of the main line and the two confidence bands. 
\item[\code{...}] any other passthru parameters 
\end{ldescription}
\end{Arguments}
\begin{Value}
A timeseries line charts of the rolling mean, with error bars
\end{Value}
\begin{Author}\relax
Peter Carl
\end{Author}
\begin{Examples}
\begin{ExampleCode}
data(edhec)
chart.RollingMean(edhec[, 9, drop = FALSE])
\end{ExampleCode}
\end{Examples}

