tx2036_hc_light: Texas 2036 highcharter Themes

Description Usage Arguments Value Examples

View source: R/themes_hc.R

Description

Minimalistic highcharter themes for use on Texas 2036 sites.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
tx2036_hc_light(
  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
data(economics_long, package = "ggplot2")

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

head(economics_long2)

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

texas-2036/texas2036 documentation built on Sept. 6, 2020, 10:47 a.m.