Generalized text display
Arguments
- data
data set using
- mapping
aesthetics being used
- text_fn
function that takes in
x
andy
and returns a text string- title
title text to be displayed
- na.rm
logical value which determines if
NA
values are removed. IfTRUE
, no warning message will be displayed.- display_grid
if
TRUE
, display aligned panel grid lines. IfFALSE
(default), display a thin panel border.- justify_labels
justify
argument supplied whenformat
ting the labels- justify_text
justify
argument supplied whenformat
ting the returnedtext_fn(x, y)
values- sep
separation value to be placed between the labels and text
- family
font family used when displaying all text. This value will be set in
title_args
orgroup_args
if nofamily
value exists. By using"mono"
, groups will align with each other.- title_args
arguments being supplied to the title's
geom_text()
- group_args
arguments being supplied to the split-by-color group's
geom_text()
- align_percent
relative align position of the text. When
title_hjust = 0.5
andgroup_hjust = 0.5
, this should not be needed to be set.- title_hjust, group_hjust
hjust
sent togeom_text()
for the title and group values respectively. Anyhjust
value supplied intitle_args
orgroup_args
will take precedence.