View source: R/geom-arearange.R
| hc_arearange | R Documentation |
Adds an arearange series (and optionally a linked centre-line series) to a
partially-built highchart object. Not intended to be called directly; use
hd_geom_arearange() or hd_make(..., type = "arearange").
hc_arearange(chart, spec, opts, geom_params, use_js = TRUE, ...)
chart |
A |
spec |
An |
opts |
An |
geom_params |
Named list of geom-specific arguments (see above). |
use_js |
Logical. Inject the hover-band JS callback. Default |
... |
Unused; present for engine-contract consistency. |
The updated highchart object.
For each group in spec$data two Highcharts series are added:
A "line" series for the centre values (spec$y), rendered first
so it appears on top (higher z-index). This series owns the legend
entry (showInLegend = TRUE).
An "arearange" series for the confidence band, linked back to the
line series via linkedTo = line_id. This means clicking the legend
hides both line and band together. showInLegend = FALSE avoids a
duplicate legend entry.
When show_line = FALSE only the arearange series is added, and it owns
the legend entry itself.
yminCharacter. Required. Column name for the lower bound.
ymaxCharacter. Required. Column name for the upper bound.
show_lineLogical. Overlay the centre line. Default TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.