Description Usage Arguments Value Examples
Minimalistic highcharter themes for use on LBJ School Data Initiative Projects.
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",
...
)
|
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 |
a highcharter theme
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.