plot_item: Barplot with RII annotation

View source: R/LikertEZ.R

plot_itemR Documentation

Barplot with RII annotation

Description

This function generates a barplot showing the distribution of responses for a single item, with the Relative Importance Index (RII) annotated.

Usage

plot_item(responses, max_scale = 5, scale_labels = NULL)

Arguments

responses

Numeric vector of ordinal responses.

max_scale

Max Likert scale value (default: 5).

scale_labels

Optional vector of labels for each scale point.

Value

A ggplot2 bar plot with RII annotation.

Examples

responses <- c(1, 2, 3, 4, 5, 3, 2, 1, NA)
plot_item(responses)

LikertEZ documentation built on April 3, 2025, 11:27 p.m.

Related to plot_item in LikertEZ...