door_barplot: Create DOOR summary barplot

View source: R/door_barplot.R

door_barplotR Documentation

Create DOOR summary barplot

Description

Create DOOR summary barplot

Usage

door_barplot(
  y1 = NULL,
  y2 = NULL,
  summary_obj = NULL,
  data_type = c("freq", "prop")
)

Arguments

y1, y2

Numeric vectors of DOOR proportion or frequency distribution for group 1, group 2. The entries should be ordered from most desirable to least desirable

summary_obj

An object returned by door_summary(); Alternative input for y1 and y2

data_type

Either "freq" for frequency input or "prop" for proportion input when using y1 and y2

Value

a ggplot object

Examples

y1 = c(60, 30, 10)
y2 = c(50, 40, 10)
door_barplot(y1, y2)

door documentation built on Aug. 8, 2025, 6:45 p.m.

Related to door_barplot in door...