likert
results.R/likert.options.R
likert.options.Rd
Builds an object with options for plotting likert
results.
likert.options(
low.color = "#D8B365",
high.color = "#5AB4AC",
neutral.color = "grey90",
neutral.color.ramp = "white",
colors = NULL,
plot.percent.low = TRUE,
plot.percent.high = TRUE,
plot.percent.neutral = TRUE,
plot.percents = FALSE,
text.size = 3,
text.color = "black",
centered = TRUE,
include.center = TRUE,
ordered = TRUE,
wrap = 50,
wrap.grouping = 50,
legend = "Response",
legend.position = c("bottom", "top", "left", "right", "none"),
panel.arrange = "v",
panel.strip.color = "#F0F0F0",
digits = 0,
drop0trailing = FALSE,
zero.print = TRUE,
...
)
color for low values.
color for high values.
color for middle values (if odd number of levels).
second color used when calling colorRamp
with low.color
and high.color
to define the color palettes.
vector specifying the colors to use. This must be equal to the number of likert levels.
whether to plot low percentages.
whether to plot high percentages.
whether to plot netural percentages.
whether to label each category/bar.
size of text attributes.
color of text attributes.
if true, the bar plot will be centered around zero such that the lower half of levels will be negative.
if TRUE, include the center level in the plot otherwise the center will be excluded.
reorder items from high to low.
width to wrap label text for item labels
width to wrap label text for group labels.
title for the legend.
the position for the legend ("left", "right", "bottom", "top", or two-element numeric vector).
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)
the background color for panel labels.
the number of significant digits to print.
logical, indicating if trailing zeros, i.e., "0" after the decimal mark, should be removed
logical, character string or NULL specifying if and how zeros should be formatted specially.
included for future expansion.