hc_theme_lbj: hc_theme_lbj highcharter Themes

Description Usage Arguments Value Examples

View source: R/themes_hc.R

Description

Minimalistic highcharter themes for use on LBJ School Data Initiative Projects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
hc_theme_lbj(
  base_size = "12px",
  base_family = "Montserrat",
  title_size = "28px",
  title_weight = "800",
  subtitle_size = "14px",
  subtitle_weight = "400",
  credit_size = "10px",
  header_align = "left",
  legend_align = "center",
  credits_align = "left",
  ...
)

Arguments

base_size

the base font size of text

base_family

the font family

title_size

the size of your title font

title_weight

the weight your tiitle font

subtitle_size

the size your subtitle font

subtitle_weight

the size your subtitle font

credit_size

the size your credits font

header_align

where to align the title and subtitle

legend_align

where to align the legend

credits_align

where to align the credits

...

Additional arguments passed to highcharter::hc_theme()

Value

a highcharter theme

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(magrittr)
library(highcharter)

data(economics_long, package = "ggplot2")

economics_long2 <- dplyr::filter(economics_long, variable %in% c("pop", "uempmed", "unemploy"))

head(economics_long2)

highcharter::hchart(economics_long2, "line", hcaes(x = date, y = value01, group = variable)) %>%
hc_theme_lbj()

utexas-lbjp-data/lbjdata documentation built on Feb. 6, 2021, 12:30 a.m.