Learn R Programming

door (version 0.0.2)

door_barplot: Create DOOR summary barplot

Description

Create DOOR summary barplot

Usage

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

Value

a ggplot object

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

Examples

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

Run the code above in your browser using DataLab