set_text_settings_y2: Setup the text setting for ms charts

View source: R/set_text_settings_y2.R

set_text_settings_y2R Documentation

Setup the text setting for ms charts

Description

Save a frequencies object using freqs(). The text settings will be automatically matched to the "label" column of the frequencies.

Usage

set_text_settings_y2(
  dataset = frequencies,
  font_size = 14,
  font_color = "white",
  font_family = "BentonSans",
  text_column = label,
  single = FALSE
)

Arguments

dataset

DEFAULT = frequencies; A frequency table named frequencies

font_size

DEFAULT = 14; Font size applied to all text in chart labels

font_color

DEFAULT = 'white'; Color applied to all text in chart labels

font_family

DEFAULT = 'BentonSans'; Font family applied to all text in chart labels

text_column

DEFAULT = label; Column from which labels are pulled

single

DEFAULT = FALSE; Set to TRUE for use with a single bar chart

Examples


frequencies <-
  mtcars %>%
  y2clerk::freqs(
    cyl
  )

set_text_settings_y2()

set_text_settings_y2(
  font_size = 28,
  font_color = 'black'
 )

nick-moffitt/y2artisan documentation built on July 30, 2023, 5:40 p.m.