View source: R/set_text_settings_y2.R
set_text_settings_y2 | R Documentation |
Save a frequencies object using freqs(). The text settings will be automatically matched to the "label" column of the frequencies.
set_text_settings_y2(
dataset = frequencies,
font_size = 14,
font_color = "white",
font_family = "BentonSans",
text_column = label,
single = FALSE
)
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 |
frequencies <-
mtcars %>%
y2clerk::freqs(
cyl
)
set_text_settings_y2()
set_text_settings_y2(
font_size = 28,
font_color = 'black'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.