Generalized text display

ggally_statistic(
data,
mapping,
text_fn,
title,
na.rm = NA,
display_grid = FALSE,
justify_labels = "right",
justify_text = "left",
sep = ": ",
family = "mono",
title_args = list(),
group_args = list(),
align_percent = 0.5,
title_hjust = 0.5,
group_hjust = 0.5
)

## Arguments

data data set using aesthetics being used function that takes in x and y and returns a text string title text to be displayed logical value which determines if NA values are removed. If TRUE, no warning message will be displayed. if TRUE, display aligned panel grid lines. If FALSE (default), display a thin panel border. justify argument supplied when formatting the labels justify argument supplied when formatting the returned text_fn(x, y) values separation value to be placed between the labels and text font family used when displaying all text. This value will be set in title_args or group_args if no family value exists. By using "mono", groups will align with each other. arguments being supplied to the title's geom_text() arguments being supplied to the split-by-color group's geom_text() relative align position of the text. When title_hjust = 0.5 and group_hjust = 0.5, this should not be needed to be set. hjust sent to geom_text() for the title and group values respectively. Any hjust value supplied in title_args or group_args will take precedence.

ggally_cor