
Plot pairwise co-support heatmap.
plot_pairwise_support.RdVisualizes the share of respondents selecting the top response on pairs of
questions. Accepts either raw data or the output of
measure_pairwise_support().
Usage
plot_pairwise_support(
data,
ques_cols = NULL,
ques_stem = NULL,
weight_col = NULL,
include_self = TRUE,
show_labels = TRUE
)Arguments
- data
Data frame containing survey items, or a precomputed results tibble.
- ques_cols
Optional character vector of question columns to include.
- ques_stem
Optional vector of substrings/regex used to match columns.
- weight_col
Optional weight column; if missing, unweighted.
- include_self
Logical; include question self-pairs on the diagonal.
- show_labels
Logical; draw percentage labels on tiles.