powered by
Create DOOR component barplot
door_component_barplot( comp_table = NULL, n1 = NULL, n2 = NULL, summary_obj = NULL, data_type = c("freq", "prop") )
A ggplot object
A DOOR component table
Sample sizes of group 1, group 2
An object returned by individual_to_summary(); Alternative input for comp_table.
individual_to_summary()
Either "freq" for frequency input or "prop" for proportion input if "comp_table" is used
comp_table = data.frame(compname = c("A", "B"), trt = c(30, 20), ctr = c(40, 25)) door_component_barplot(comp_table = comp_table, n1 = 100, n2 = 100)
Run the code above in your browser using DataLab