EVOLUTION-MANAGER
Edit File: zoomChart.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: Change Zoom Level Of Current Chart</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 zoomChart {quantmod}"><tr><td>zoomChart {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Change Zoom Level Of Current Chart </h2> <h3>Description</h3> <p>Using <span class="pkg">xts</span> style date subsetting, zoom into or out of the current chart. </p> <h3>Usage</h3> <pre> zooom(n=1, eps=2) zoomChart(subset, yrange=NULL) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>n</code></td> <td> <p> the number of interactive view changes per call </p> </td></tr> <tr valign="top"><td><code>eps</code></td> <td> <p> the distance between clicks to be considered a valid subset request </p> </td></tr> <tr valign="top"><td><code>subset</code></td> <td> <p> a valid subset string </p> </td></tr> <tr valign="top"><td><code>yrange</code></td> <td> <p> override y-scale </p> </td></tr> </table> <h3>Details</h3> <p>These function allow for viewing of specific areas of a chart produced by <code>chartSeries</code> by simply specifying the dates of interest </p> <p><code>zooom</code> is an interactive chart version of <code>zoomChart</code> which utilizes the standard <span style="font-family: Courier New, Courier; color: #666666;"><b>R</b></span> device interaction tool <code>locator</code> to estimate the subset desired. This estimate is then passed to zoomChart for actual redrawing. At present it is quite experimental in its interface and arguments. Its usage entails a call to <code>zooom()</code> followed by the selection of the leftmost and rightmost points desired in the newly zoomed chart. This selection is accomplished by the user left-clicking each extreme point. Two click are required to determine the level of zooming. Double clicking will reset the chart to the full data range. The arguments and internal working of this function are likely to change dramatically in future releases, though its use will likely remain. </p> <p>Standard format for the <code>subset</code> argument is the same as the subsetting for xts objects, which is how the data is stored internally for rendering. </p> <p>Calling <code>zoomChart</code> with no arguments (NULL) resets the chart to the original data. </p> <p>Examples include '2007' for all of the year 2007, '2007::2008' for years 2007 through 2008, '::2007' for all data from the beginning of the set to the end of 2007, '2007::' all data from the beginning of 2007 through the end of the data. For specifics regarding the level of detail and internal interpretation please see <code>[.xts</code> </p> <h3>Value</h3> <p>This function is called for its side effect - notably changing the perspective of the current chart, and changing its formal subset level. The underlying data attached to the chart is left unchanged. </p> <h3>Author(s)</h3> <p> Jeffrey A. Ryan </p> <h3>See Also</h3> <p><code><a href="chartSeries.html">chartSeries</a></code> </p> <h3>Examples</h3> <pre> ## Not run: data(sample_matrix) chartSeries(sample_matrix) zoomChart('2007-04::') zoomChart() zooom() # interactive example ## End(Not run) </pre> <hr /><div style="text-align: center;">[Package <em>quantmod</em> version 0.4.20 <a href="00Index.html">Index</a>]</div> </body></html>