EVOLUTION-MANAGER
Edit File: chartTheme.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: Create A Chart Theme</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 chartTheme {quantmod}"><tr><td>chartTheme {quantmod}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2> Create A Chart Theme </h2> <h3>Description</h3> <p>Create a chart.theme object for use within chartSeries to manage desired chart colors. </p> <h3>Usage</h3> <pre> chartTheme(theme = "black", ...) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>theme</code></td> <td> <p> name of base theme </p> </td></tr> <tr valign="top"><td><code>...</code></td> <td> <p> name=value pairs to modify </p> </td></tr> </table> <h3>Details</h3> <p>Used as an argument to the chartSeries family of functions, <code>chartTheme</code> allows for on-the-fly modification of pre-specified chart ‘themes’. Users can modify a pre-built theme in-place, or copy the theme to a new variable for use in subsequent charting calls. </p> <p>Internally a chart.theme object is nothing more than a list of values organized by chart components. The primary purpose of this is to facilitate minor modification on the fly, as well as provide a template for larger changes. </p> <p>Setting style arguments for TA calls via chartTheme requires the user to pass the styles as name=value pairs with a name containing the TA call in question. See examples for assistance. </p> <p>Current components that may be modified with appropriate values: </p> <ul> <li><p>fg.colforeground color </p> </li> <li><p>bg.colbackground color </p> </li> <li><p>grid.colgrid color </p> </li> <li><p>borderborder color </p> </li> <li><p>minor.tickminor tickmark color </p> </li> <li><p>major.tickmajor tickmark color </p> </li> <li><p>up.colup bar/candle color </p> </li> <li><p>dn.coldown bar/candle color </p> </li> <li><p>up.up.colup after up bar/candle color </p> </li> <li><p>up.dn.colup after down bar/candle color </p> </li> <li><p>dn.dn.coldown after down bar/candle color </p> </li> <li><p>dn.up.coldown after up bar/candle color </p> </li> <li><p>up.borderup bar/candle border color </p> </li> <li><p>dn.borderdown bar/candle border color </p> </li> <li><p>up.up.borderup after up bar/candle border color </p> </li> <li><p>up.dn.borderup after down bar/candle border color </p> </li> <li><p>dn.dn.borderdown after down bar/candle border color </p> </li> <li><p>dn.up.borderdown after up bar/candle border color </p> </li></ul> <h3>Value</h3> <p>A chart.theme object </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> chartTheme() chartTheme('white') chartTheme('white',up.col='blue',dn.col='red') # A TA example chartTheme(addRSI.col='red') str(chartTheme()) </pre> <hr /><div style="text-align: center;">[Package <em>quantmod</em> version 0.4.20 <a href="00Index.html">Index</a>]</div> </body></html>