Skip to contents

Construct the pairwise heatmap data for likert.heatmap().

This function is called by likert.heatmap() but can be called individually.

Usage

make.likert.heatmap.data(data, QoI, Qcompared, value.range)

Arguments

data

tibble (or data.frame) with Likert data converted to integers. Use the convert.fromto() function to convert text responses to integers. Note: Ensure the integers are positive and non-zero.

QoI

string with the Question of Interest (the rows)

Qcompared

string with the Question being Compared to (the columns)

value.range

range of possible Likert values

Value

tibble (or data.frame) containing the needed count, percentage, and colour hex values to construct a heatmap with percentage values overlaid on each tile of the heatmap.