\HeaderA{PerformanceAnalytics-internal}{internal functions for setting useful defaults for graphs}{PerformanceAnalytics.Rdash.internal}
\aliasA{allsymbols}{PerformanceAnalytics-internal}{allsymbols}
\aliasA{bluefocus}{PerformanceAnalytics-internal}{bluefocus}
\aliasA{bluemono}{PerformanceAnalytics-internal}{bluemono}
\aliasA{bond.dates}{PerformanceAnalytics-internal}{bond.dates}
\aliasA{bond.labels}{PerformanceAnalytics-internal}{bond.labels}
\aliasA{closedsymbols}{PerformanceAnalytics-internal}{closedsymbols}
\aliasA{cycles.dates}{PerformanceAnalytics-internal}{cycles.dates}
\aliasA{dark6equal}{PerformanceAnalytics-internal}{dark6equal}
\aliasA{dark8equal}{PerformanceAnalytics-internal}{dark8equal}
\aliasA{equity.dates}{PerformanceAnalytics-internal}{equity.dates}
\aliasA{equity.labels}{PerformanceAnalytics-internal}{equity.labels}
\aliasA{fillsymbols}{PerformanceAnalytics-internal}{fillsymbols}
\aliasA{greenfocus}{PerformanceAnalytics-internal}{greenfocus}
\aliasA{greenmono}{PerformanceAnalytics-internal}{greenmono}
\aliasA{grey6mono}{PerformanceAnalytics-internal}{grey6mono}
\aliasA{grey8mono}{PerformanceAnalytics-internal}{grey8mono}
\aliasA{legend}{PerformanceAnalytics-internal}{legend}
\aliasA{linesymbols}{PerformanceAnalytics-internal}{linesymbols}
\aliasA{macro.dates}{PerformanceAnalytics-internal}{macro.dates}
\aliasA{macro.labels}{PerformanceAnalytics-internal}{macro.labels}
\aliasA{opensymbols}{PerformanceAnalytics-internal}{opensymbols}
\aliasA{rainbow10equal}{PerformanceAnalytics-internal}{rainbow10equal}
\aliasA{rainbow12equal}{PerformanceAnalytics-internal}{rainbow12equal}
\aliasA{rainbow6equal}{PerformanceAnalytics-internal}{rainbow6equal}
\aliasA{rainbow8equal}{PerformanceAnalytics-internal}{rainbow8equal}
\aliasA{redfocus}{PerformanceAnalytics-internal}{redfocus}
\aliasA{redmono}{PerformanceAnalytics-internal}{redmono}
\aliasA{rich10equal}{PerformanceAnalytics-internal}{rich10equal}
\aliasA{rich12equal}{PerformanceAnalytics-internal}{rich12equal}
\aliasA{rich6equal}{PerformanceAnalytics-internal}{rich6equal}
\aliasA{rich8equal}{PerformanceAnalytics-internal}{rich8equal}
\aliasA{risk.dates}{PerformanceAnalytics-internal}{risk.dates}
\aliasA{risk.labels}{PerformanceAnalytics-internal}{risk.labels}
\aliasA{set6equal}{PerformanceAnalytics-internal}{set6equal}
\aliasA{set8equal}{PerformanceAnalytics-internal}{set8equal}
\aliasA{tim10equal}{PerformanceAnalytics-internal}{tim10equal}
\aliasA{tim12equal}{PerformanceAnalytics-internal}{tim12equal}
\aliasA{tim6equal}{PerformanceAnalytics-internal}{tim6equal}
\aliasA{tim8equal}{PerformanceAnalytics-internal}{tim8equal}
\keyword{internal}{PerformanceAnalytics-internal}
\begin{Description}\relax
Internal functions and data objects to make graphs easier to read, and better for print and presentation.

Also contains common economic cycle dates and dates of serious market events per asset class.
\end{Description}
\begin{Usage}
\begin{verbatim}
legend(x, y = NULL, legend, fill = NULL, col = par("col"), lty, lwd, pch, angle = 45, density = NULL, bty = "o", bg = par("bg"), pt.bg = NA, cex = 1, pt.cex = cex, pt.lwd = lwd, xjust = 0, yjust = 1, x.intersp = 1, y.intersp = 1, adj = c(0, 0.5), text.width = NULL, text.col = par("col"), merge = do.lines && has.pch, trace = FALSE, plot = TRUE, ncol = 1, horiz = FALSE, title = NULL, inset = 0, border.col = NULL, border.lwd = 1, border.lty = "solid", box.col = NULL, box.lwd = 1, box.lty = "solid")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x, y}] the x and y co-ordinates to be used to position the legend.
They can be specified by keyword or in any way which is accepted by
\code{\LinkA{xy.coords}{xy.coords}}: See Details.
\item[\code{legend}] a character or \LinkA{expression}{expression} vector.
of length \eqn{\ge 1}{} to appear in the legend.  
\item[\code{fill}] if specified, this argument will cause boxes filled
with the specified colors (or shaded in the specified colors)
to appear beside the legend text.
\item[\code{col}] the color of points or lines appearing in the legend.
\item[\code{lty, lwd}] the line types and widths for lines appearing in the
legend.  One of these two \emph{must} be specified for line drawing.
\item[\code{pch}] the plotting symbols appearing in the legend, either as
vector of 1-character strings, or one (multi character)
string.  \emph{Must} be specified for symbol drawing.
\item[\code{angle}] angle of shading lines.
\item[\code{density}] the density of shading lines, if numeric and
positive. If \code{NULL} or negative or \code{NA} color filling
is assumed.
\item[\code{bty}] the type of box to be drawn around the legend.  The allowed
values are \code{"o"} (the default) and \code{"n"}.
\item[\code{bg}] the background color for the legend box.  (Note that this is
only used if \code{bty != "n"}.)
\item[\code{box.lty, box.lwd}] the line type and width for the legend box.
\item[\code{border.lty, border.lwd}] the line type and width for the legend border.
\item[\code{pt.bg}] the background color for the \code{\LinkA{points}{points}},
corresponding to its argument \code{bg}.
\item[\code{cex}] character expansion factor \bold{relative} to current
\code{par("cex")}.
\item[\code{pt.cex}] expansion factor(s) for the points.
\item[\code{pt.lwd}] line width for the points, defaults to the one for
lines, or if that is not set, to \code{par("lwd")}.
\item[\code{xjust}] how the legend is to be justified relative to the legend
x location.  A value of 0 means left justified, 0.5 means centered
and 1 means right justified.
\item[\code{yjust}] the same as \code{xjust} for the legend y location.
\item[\code{x.intersp}] character interspacing factor for horizontal (x) spacing.
\item[\code{y.intersp}] the same for vertical (y) line distances.
\item[\code{adj}] numeric of length 1 or 2; the string adjustment for legend
text.  Useful for y-adjustment when \code{labels} are
\LinkA{plotmath}{plotmath} expressions.
\item[\code{text.width}] the width of the legend text in x (\code{"user"})
coordinates.  (Should be positive even for a reversed x axis.)
Defaults to the proper value computed by \code{\LinkA{strwidth}{strwidth}(legend)}.
\item[\code{text.col}] the color used for the legend text.
\item[\code{merge}] logical; if \code{TRUE}, \dQuote{merge} points and lines but
not filled boxes.  Defaults to \code{TRUE} if there are points and lines.
\item[\code{trace}] logical; if \code{TRUE}, shows how \code{legend} does all
its magical computations.
\item[\code{plot}] logical.  If \code{FALSE}, nothing is plotted but the
sizes are returned.
\item[\code{ncol}] the number of columns in which to set the legend items
(default is 1, a vertical legend).
\item[\code{horiz}] logical; if \code{TRUE}, set the legend horizontally
rather than vertically (specifying \code{horiz} overrides the \code{ncol}
specification).
\item[\code{title}] a character string or length-one expression giving a
title to be placed at the top of the legend.
\item[\code{inset}] inset distance(s) from the margins as a fraction of the
plot region when legend is placed by keyword.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
All items ending in .labels or .dates contain labels or dates that would be appropriate for specific asset classes or economic cycles.

\code{legend} is a wrapper function for \code{\LinkA{legend}{legend}} to better handle placement and formatting of a legend for the charts

all objects ending in symbol are symbol sets for line charts.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{legend}{legend}}
\end{SeeAlso}

