hc_themed: Custom Highcharts theme

View source: R/hc_themed.R

hc_themedR Documentation

Custom Highcharts theme

Description

Custom Highcharts theme

Usage

hc_themed(
  hc,
  title = NULL,
  subtitle = NULL,
  label = NULL,
  x = NULL,
  y = NULL,
  base_font = "national-web-book",
  axes = TRUE,
  exporting = TRUE,
  credits = FALSE,
  ...
)

Arguments

hc

a highchart object

title

chart title

subtitle

chart subtitle

label

optional annotation

base_font

default font for all chart elements

axes

show axes (default: TRUE)

exporting

include chart export menu (default: TRUE)

credits

include credits (default: FALSE)

...

Arguments passed on to highcharter::hc_theme

Examples

data <- data.table(
  x = Sys.Date() + 0:9,
  y = rnorm(10)
)

hchart(data, "line", hcaes(x, y)) %>%
  hc_themed()


mbacou/WADashboard documentation built on Jan. 3, 2023, 6:21 p.m.