Learn R Programming

whatifbandit (version 0.3.0)

plot_summary: Plot Treatment Arms Over Multiple Trials

Description

Plots summary results for plot.multiple.mab(), shows then number of times each arm was selected as the best in a bar chart.

Usage

plot_summary(x, ...)

Value

Minimal ggplot object, that can be customized and added to with + (to change scales, labels, legend, theme, etc.).

Arguments

x

A multiple.mab class object created by multiple_mab_simulation().

...

Arguments to pass to ggplot2::geom_* function (e.g. color, linewidth, alpha, bins etc.). In the case of type = "hist", additional arguments must be passed in to distinct lists, one named geom which are passed to ggplot2::geom_* and one named facet which are passed to ggplot2::facet_grid.