EVOLUTION-MANAGER
Edit File: hc_colors.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: Colors options for highcharter objects</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 hc_colors {highcharter}"><tr><td>hc_colors {highcharter}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Colors options for highcharter objects</h2> <h3>Description</h3> <p>An array containing the default colors for the chart's series. When all colors are used, new colors are pulled from the start again. </p> <h3>Usage</h3> <pre> hc_colors(hc, colors) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>hc</code></td> <td> <p>A <code>highchart</code> <code>htmlwidget</code> object.</p> </td></tr> <tr valign="top"><td><code>colors</code></td> <td> <p>A vector of colors.</p> </td></tr> </table> <h3>Examples</h3> <pre> library(viridisLite) cols <- viridis(3) cols <- substr(cols, 0, 7) highchart() %>% hc_add_series(data = sample(1:12)) %>% hc_add_series(data = sample(1:12) + 10) %>% hc_add_series(data = sample(1:12) + 20) %>% hc_colors(cols) </pre> <hr /><div style="text-align: center;">[Package <em>highcharter</em> version 0.9.4 <a href="00Index.html">Index</a>]</div> </body></html>