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

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

#> Registered S3 method overwritten by 'quantmod': #> method from #> as.zoo.data.frame zoo
#> Highcharts (www.highcharts.com) is a Highsoft software product which is
#> not free for commercial and Governmental use
data(economics_long, package = "ggplot2") economics_long2 <- dplyr::filter(economics_long, variable %in% c("pop", "uempmed", "unemploy")) head(economics_long2)
#> # A tibble: 6 x 4 #> date variable value value01 #> <date> <chr> <dbl> <dbl> #> 1 1967-07-01 pop 198712 0 #> 2 1967-08-01 pop 198911 0.00164 #> 3 1967-09-01 pop 199113 0.00330 #> 4 1967-10-01 pop 199311 0.00492 #> 5 1967-11-01 pop 199498 0.00646 #> 6 1967-12-01 pop 199657 0.00777
highcharter::hchart(economics_long2, "line", hcaes(x = date, y = value01, group = variable)) %>% hc_theme_lbj()
#> $colors #> [1] "#005f86" "#00a9b7" "#9cadb7" "#d6d2c4" #> #> $chart #> $chart$style #> $chart$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $chart$style$color #> [1] "#333f48" #> #> $chart$style$fontSize #> #> $chart$style$fontWeight #> [1] "bold" #> #> $chart$style$textTransform #> [1] "initial" #> #> #> $chart$backgroundColor #> [1] "#fff" #> #> #> $title #> $title$align #> [1] "left" #> #> $title$style #> $title$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $title$style$fontWeight #> [1] "800" #> #> $title$style$color #> [1] "#2d2d2d" #> #> $title$style$textTransform #> [1] "initial" #> #> $title$style$fontSize #> [1] "28px" #> #> #> #> $subtitle #> $subtitle$align #> [1] "left" #> #> $subtitle$style #> $subtitle$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $subtitle$style$color #> [1] "#7d7d7d" #> #> $subtitle$style$textTransform #> [1] "initial" #> #> $subtitle$style$fontWeight #> [1] "400" #> #> $subtitle$style$fontSize #> [1] "14px" #> #> #> #> $legend #> $legend$align #> [1] "center" #> #> $legend$verticalAlign #> [1] "top" #> #> $legend$style #> $legend$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $legend$style$color #> [1] "#6d6d6d" #> #> #> $legend$itemStyle #> $legend$itemStyle$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $legend$itemStyle$color #> [1] "#6d6d6d" #> #> #> $legend$itemHoverStyle #> $legend$itemHoverStyle$color #> [1] "gray" #> #> #> #> $xAxis #> $xAxis$gridLineWidth #> [1] 0 #> #> $xAxis$gridLineColor #> [1] "#9d9d9d" #> #> $xAxis$lineColor #> [1] "rgba(0,0,0,0.7)" #> #> $xAxis$minorGridLineColor #> [1] "rgba(0,0,0,0.7)" #> #> $xAxis$tickColor #> [1] "#9d9d9d" #> #> $xAxis$tickWidth #> [1] 1 #> #> $xAxis$labels #> $xAxis$labels$style #> $xAxis$labels$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $xAxis$labels$style$color #> [1] "#2d2d2d" #> #> #> #> $xAxis$title #> $xAxis$title$style #> $xAxis$title$style$color #> [1] "#333f48" #> #> $xAxis$title$style$fontSize #> #> $xAxis$title$style$fontWeight #> [1] "500" #> #> #> #> #> $yAxis #> $yAxis$gridLineColor #> [1] "rgba(0,0,0,0.15)" #> #> $yAxis$lineColor #> [1] "rgba(0,0,0,0.15)" #> #> $yAxis$minorGridLineColor #> [1] "rgba(0,0,0,0.15)" #> #> $yAxis$tickColor #> [1] "#9d9d9d" #> #> $yAxis$tickWidth #> [1] 2 #> #> $yAxis$labels #> $yAxis$labels$style #> $yAxis$labels$style$fontFamily #> [1] "\"Libre Franklin\", -apple-system, BlinkMacSystemFont,\n \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif" #> #> $yAxis$labels$style$color #> [1] "#333f48" #> #> #> #> $yAxis$title #> $yAxis$title$style #> $yAxis$title$style$color #> [1] "#fff" #> #> $yAxis$title$style$fontSize #> [1] "12px" #> #> $yAxis$title$style$color #> [1] "#fff" #> #> $yAxis$title$style$fontWeight #> [1] "500" #> #> #> #> $yAxis$gridLineWidth #> [1] 0.5 #> #> #> $plotOptions #> $plotOptions$line #> $plotOptions$line$marker #> $plotOptions$line$marker$enabled #> [1] FALSE #> #> #> #> $plotOptions$spline #> $plotOptions$spline$marker #> $plotOptions$spline$marker$enabled #> [1] FALSE #> #> #> #> $plotOptions$area #> $plotOptions$area$marker #> $plotOptions$area$marker$enabled #> [1] FALSE #> #> #> #> $plotOptions$areaspline #> $plotOptions$areaspline$marker #> $plotOptions$areaspline$marker$enabled #> [1] FALSE #> #> #> #> $plotOptions$arearange #> $plotOptions$arearange$marker #> $plotOptions$arearange$marker$enabled #> [1] FALSE #> #> #> #> $plotOptions$bubble #> $plotOptions$bubble$maxSize #> [1] "10%" #> #> #> #> $marker #> $marker$fillColor #> [1] "#005f86" "#00a9b7" "#9cadb7" "#d6d2c4" #> #> $marker$lineColor #> [1] "#000" #> #> $marker$radius #> [1] 3 #> #> $marker$lineWidth #> [1] 1 #> #> $marker$symbol #> [1] "circle" #> #> #> $credits #> $credits$style #> $credits$style$color #> [1] "#2d2d2d" #> #> $credits$style$fontSize #> [1] "10px" #> #> #> $credits$align #> [1] "left" #> #> #> attr(,"class") #> [1] "hc_theme"