Heatmap representation summarizing categorical/likert data. Modified version of `likert.heat.plot` from `likert` package. Does not allow different categorical ranges across questions. The function outputs a ggplot object where additional layers can be added for customization purposes. The output plot preserves the question order given by columns of `x`.
likert.heat.plot2(
x,
allLevels,
low.color = "white",
high.color = "blue",
text.color = "black",
text.size = 4,
textLen = 50
)
ggplot object.
matrix object or data.frame with categorical data. Columns are questions and rows are observations.
vector with all categorical (ordered) levels.
string; name of color assigned to the first level found in `allLevels`.
string; name of color assigned to the last level found in `allLevels`.
string; text color of numbers within cells.
string; text size for numbers within cells.
string; maximum length of text-length for question labels (column names)