| sframe_plot_likert_matrix | R Documentation |
A matrix question asks several rows against one shared response scale
(a "grid" of Likert items). Plotting each row as its own separate
sframe_draw_likert_diverging() chart loses the grouping the question
was designed with, so this draws every row as one diverging bar inside a
single chart, sharing one x scale and one legend, the standard way a
Likert matrix is reported (compare a typical multi-item satisfaction
grid). Same diverging-stack convention as the single-item chart: the
middle category of an odd-length scale is neutral and split evenly
across the zero line, and colour saturation increases toward each pole.
sframe_plot_likert_matrix(item, data, choice_set, palette = c("web", "print"))
item |
A |
data |
The response data.frame, with one expanded
|
choice_set |
The item's choice set object ( |
palette |
One of |
A ggplot2 object, or NULL if no row has response data.
sframe_draw_likert_diverging()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.