powered by
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)
A ggplot2 bar plot with RII annotation.
Numeric vector of ordinal responses.
Max Likert scale value (default: 5).
Optional vector of labels for each scale point.
responses <- c(1, 2, 3, 4, 5, 3, 2, 1, NA) plot_item(responses)
Run the code above in your browser using DataLab