| hc_pal | R Documentation |
Highcharts uses many different color palettes in its plots. This collects the palettes shipped with Highcharts 13, plus the default Highcharts used before v11.
hc_pal(palette = "default")
palette |
|
"default" and "default_dark" are the light- and dark-mode
forms of the palette Highcharts has used by default since v11.0.0; they
differ only in positions 2 and 3. "classic" is the default
Highcharts used from v5.0.0 through v10.x. The remaining palettes come
from the themes bundled with Highcharts.
Note that "avocado" and "sunset" have only four colors.
A palette function. It takes the number of colours n and returns a character vector of n
hex colours, and can be used as the palette argument of discrete_scale().
Other colour hc:
scale_colour_hc()
hc_pal()(6)
scales::show_col(hc_pal("darkunica")(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.