plot_item | R Documentation |
This function generates a barplot showing the distribution of responses for a single item, with the Relative Importance Index (RII) annotated.
plot_item(responses, max_scale = 5, scale_labels = NULL)
responses |
Numeric vector of ordinal responses. |
max_scale |
Max Likert scale value (default: 5). |
scale_labels |
Optional vector of labels for each scale point. |
A ggplot2 bar plot with RII annotation.
responses <- c(1, 2, 3, 4, 5, 3, 2, 1, NA)
plot_item(responses)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.