EVOLUTION-MANAGER
Edit File: addEventLines.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Add vertical lines to an existing xts plot</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for addEventLines {xts}"><tr><td>addEventLines {xts}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Add vertical lines to an existing xts plot</h2> <h3>Description</h3> <p>Add vertical lines and labels to an existing xts plot </p> <h3>Usage</h3> <pre> addEventLines(events, main = "", on = 0, lty = 1, lwd = 1, col = 1, ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>events</code></td> <td> <p>xts object of events and their associated labels. It is assumed that the first column of <code>events</code> is the event description/label.</p> </td></tr> <tr valign="top"><td><code>main</code></td> <td> <p>main title for a new panel if drawn.</p> </td></tr> <tr valign="top"><td><code>on</code></td> <td> <p>panel number to draw on. A new panel will be drawn if <code>on=NA</code>. The default, <code>on=0</code>, will add to the active panel. The active panel is defined as the panel on which the most recent action was performed. Note that only the first element of <code>on</code> is checked for the default behavior to add to the last active panel.</p> </td></tr> <tr valign="top"><td><code>lty</code></td> <td> <p>set the line type, same as in <code><a href="../../graphics/html/par.html">par</a></code>.</p> </td></tr> <tr valign="top"><td><code>lwd</code></td> <td> <p>set the line width, same as in <code><a href="../../graphics/html/par.html">par</a></code>.</p> </td></tr> <tr valign="top"><td><code>col</code></td> <td> <p>color palette to use, set by default to rational choices.</p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p>any other passthrough parameters to <code><a href="../../graphics/html/text.html">text</a></code> to control how the event labels are drawn</p> </td></tr> </table> <h3>Author(s)</h3> <p>Ross Bennett </p> <h3>Examples</h3> <pre> ## Not run: library(xts) data(sample_matrix) sample.xts <- as.xts(sample_matrix) events <- xts(letters[1:3], as.Date(c("2007-01-12", "2007-04-22", "2007-06-13"))) plot(sample.xts[,4]) addEventLines(events, srt=90, pos=2) ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>xts</em> version 0.12.2 <a href="00Index.html">Index</a>]</div> </body></html>