Helper function: Heatmap
.plot_heatmap(
data,
values_col,
numbers_col = NULL,
base = NULL,
title = TRUE,
labels = TRUE
)
A ggplot object
A tibble with item combinations in the first two columns. Only if the item values are equal in both columns, titles are added to the axes.
Name of the column containing correlation values, a character value.
Name of the column containing values to plot on the tiles or NULL to hide numbers.
Character value; the baseline note, including the number of cases.
If TRUE (default) shows a plot title derived from the column labels. Disable the title with FALSE or provide a custom title as character value.
If TRUE (default) extracts labels from the attributes, see codebook.