likert.histogram.plot: Histogram of number of responses.

Description Usage Arguments

Description

Plots a histogram of the number of responses for each item and group (if specified). Negative values (in maroon by default) indicate the number of missing values for that item and group.

Usage

1
2
3
4
5
6
7
  likert.histogram.plot(l, xlab = "n", plot.missing = TRUE,
    bar.color = "grey70", missing.bar.color = "maroon",
    label.completed = "Completed",
    label.missing = "Missing", legend.position = "bottom",
    wrap = ifelse(is.null(l$grouping), 50, 100), order,
    group.order, panel.arrange = "v",
    panel.strip.color = "#F0F0F0", text.size = 2.5, ...)

Arguments

l

results of likert.

xlab

label used for the x-axis.

plot.missing

if TRUE, missing values will be plotted to the left of the x-axis.

bar.color

the bar color.

missing.bar.color

the color of the bar for missing values.

label.completed

the label to use in the legend representing the count of complete values.

label.missing

the label to use in the legend representing the count of missing values.

order

the order of the items.

...

other ggplot2 parameters.

legend.position

the position for the legend ("left", "right", "bottom", "top", or two-element numeric vector).

wrap

width to wrap label text for item labels

group.order

the order in which groups (for grouped items) or items (for non-grouped items) should be plotted.

panel.arrange

how panels for grouped likert items should be arrange. Possible values are v (vertical, the default), h (horizontal), and NULL (auto fill horizontal and vertical)

panel.strip.color

the background color for panel labels.

text.size

size of text attributes.


bryanmayer/likert_custom documentation built on May 13, 2019, 8:10 a.m.