util_heatmap_1th {dataquieR} | R Documentation |
Utility Function Heatmap with 1 Threshold
Description
Function to create heatmap-like plot given one threshold – works for percentages for now.
Usage
util_heatmap_1th(
df,
cat_vars,
values,
threshold,
right_intv,
invert,
cols,
strata
)
Arguments
df |
data.frame with data to display as a heatmap. |
cat_vars |
variable list len=1-2. Variables to group by. Up to 2 group levels supported. |
values |
variable the name of the percentage variable |
threshold |
numeric lowest acceptable value |
right_intv |
logical len=1. If |
invert |
logical len=1. If |
cols |
deprecated, ignored. |
strata |
variable optional, the name of a variable
used for stratification
|
Value
a list with:
-
SummaryPlot
: ggplot object with the heatmap
See Also
Other figure_functions:
util_optimize_histogram_bins()