View source: R/util_heatmap_1th.R
util_heatmap_1th | R Documentation |
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
)
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
|
a list with:
SummaryPlot
: ggplot object with the heatmap
Other figure_functions:
util_optimize_histogram_bins()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.