plot.item.scale: Generate a set of histograms for the items in an 'item.scale'

View source: R/plots.R

plot.item.scaleR Documentation

Generate a set of histograms for the items in an item.scale

Description

Extracts the original data from an item.scale, generates a histogram for each question, and plots them side-by-side

Usage

## S3 method for class 'item.scale'
plot(s, cols = NULL, ...)

Arguments

s

An item.scale object

cols

(optional) The number of columns in the resulting plot. If omitted, the function will make its best guess

...

Additional parameters passed to plot_question. Commonly used to set a ymax value so all plots have the same y range

Value

A grid object containing the set of histograph ggplot2 plots


rwash/surveys documentation built on Sept. 18, 2023, 11:31 p.m.