plot_pep: Plot the Posterior Exchangeability of a Basket Trial

Description Usage Arguments Details Examples

View source: R/plot.r

Description

The posterior exchangeability of the baskets in a MEM analysis can be visualized via an exchangeogram using this function.

Usage

1

Arguments

x

basket element of the exchangeability model.

...

other options passed to ggplot2 to alter the visual characteristics of the plot. See Details for more information.

Details

The plot_pep function attempts to place the basket names to the left of the main diagonal in a way that makes it easy to read. However, for especially long basket names options are provided. Here is a list of all options available to “fine tune” the visualizations. These auxiliary options include:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Create an MEM analysis of the Vemurafenib trial data.
data(vemu_wide)

mem_analysis <- mem_exact(
  vemu_wide$responders,
  vemu_wide$evaluable,
  vemu_wide$baskets
)

plot_pep(mem_analysis$basket)

basket documentation built on Oct. 17, 2021, 1:07 a.m.