tau_set_font: Set the font family for the TauCharts chart

Description Usage Arguments Value Examples

Description

Set the font family (standard CSS font-family specification, comma-separated font names only) and an optional font CSS URL to load the font from.

Usage

1
2
3
4
5
tau_set_font(tau,
  family = "OpenSans, 'Helvetica Neue', Helvetica, Arial, sans-serif",
  import_url = paste0(c("https://fonts.googleapis.com/css?family=Open+Sans:400,",
  "400italic,600,700,600italic,700italic,800,300,300italic,800italic"), collapse
  = ""))

Arguments

tau

taucharts object

family

CSS font-family spec (just the comma-separated font names)

import_url

the <link> href if the fonts come from an external source

Value

taucharts object

Examples

1
2
3
4
5
6
7
tauchart(mtcars) %>%
  tau_point("mpg", "wt", "cyl") %>%
  tau_legend() %>%
  tau_color_brewer() %>%
  tau_tooltip() %>%
  tau_set_font("Montserrat, sans-serif",
               "http://fonts.googleapis.com/css?family=Montserrat:400,700")

hrbrmstr/taucharts documentation built on May 17, 2019, 5:14 p.m.