View source: R/highcharts-api-add.R
hc_add_series | R Documentation |
Adding data to highchart objects
hc_add_series(hc, data = NULL, ...)
hc |
A |
data |
An R object like numeric, list, ts, xts, etc. |
... |
Arguments defined in https://api.highcharts.com/highcharts/plotOptions.series. |
highchart() %>%
hc_add_series(data = abs(rnorm(5)), type = "column") %>%
hc_add_series(data = purrr::map(0:4, function(x) list(x, x)), type = "scatter", color = "orange")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.