Constructs a ggplot2::ggplot2 heatmap for Likert and Likert-like results
with each option for the question of interest (QoI
) represented on the row
while the columns are the question being compared (Qcompared
). Each tile
(square) is shaded based on the percent overlap and the percentage of
overlapping responses are noted as MSU dark-green text on a white box.
This function is called by likert.plot.matrix()
but can be called individually.
Arguments
- data
tibble
(ordata.frame
) with Likert data converted to integers. Use theconvert.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
Author
Emilio Xavier Esposito emilio.esposito@gmail.com (https://github.com/emilioxavier)