Constructs a highcharter theme by merging a named base theme with colour
and font overrides from the current hd_set_theme() session defaults and
any per-figure opts.
Arguments
- name
Character or
NULL. Theme name;NULLreads fromgetOption("highdir.hc_theme").- colors
Character vector or
NULL. Colour override for this call.- ...
Named arguments forwarded to
highcharter::hc_theme()as extra overrides on top of the base theme.
Details
Called automatically inside the highcharter engine; useful when you want to apply a theme to a highchart built outside highdir.
Examples
if (FALSE) { # \dontrun{
t <- hd_theme("darkunica")
highcharter::highchart() |> highcharter::hc_add_theme(t)
} # }
