Function to create heatmap-like plot given one threshold -- works for percentages for now.
util_heatmap_1th(
df,
cat_vars,
values,
threshold,
right_intv,
invert,
cols,
strata
)a list with:
SummaryPlot: ggplot object with the heatmap
data.frame with data to display as a heatmap.
variable list len=1-2. Variables to group by. Up to 2 group levels supported.
variable the name of the percentage variable
numeric lowest acceptable value
logical len=1. If FALSE (default), intervals used
to define color ranges in the heatmap
are closed on the left side, if TRUE on
the right side, respectively.
logical len=1. If TRUE, high values are better, warning
colors are used for low values. FALSE works
vice versa.
deprecated, ignored.
variable optional, the name of a variable
used for stratification
inheritParams acc_distributions
Other figure_functions:
util_optimize_histogram_bins()