Skip to contents

Plot a set of multiselection choice items

Usage

stem_plot_multiselect(
  data,
  items,
  group = NULL,
  weight = NULL,
  item_reverse = FALSE,
  infreq_order = TRUE,
  backround_fill = "grey",
  backround_alpha = 1,
  ...
)

Arguments

data

Dataframe including item (and group) variables

items

Plotted items. Can be selected using Tidyselect's selection helpers.

group

Optional; plotted grouping variable

weight

Optional; survey weights

item_reverse

Optional; should item order be reversed?

infreq_order

Optional; should items be ordered in order of their frequency?

backround_fill

Color of backround bars. Default is grey.

backround_alpha

Alpha of backround bars. Default is 1.

...

Other arguments passed to stem_plot()

Value

A ggplot2 object with custom attribute "stem_plot"

Examples

if (FALSE) { # \dontrun{
stem_plot_multiselect(trust, items = dplyr::starts_with("biggest"))
} # }