plot_pep_graph: Plot a Network Graph of the PEP Matrix

Description Usage Arguments Examples

View source: R/plot.r

Description

Plot a Network Graph of the PEP Matrix

Usage

1
2
3
4
5
6
plot_pep_graph(
  x,
  color_by = c("post_prob", "mean_est", "median_est"),
  layout = c("fr", "nicely", "kk", "drl"),
  pep_cutoff = 0
)

Arguments

x

the exchangeability model.

color_by

which variable to color by. One of "post_prob", "mean_est", "median_est".

layout

the layout algorithm to use for the graph. One of

pep_cutoff

a value between 0 and 1 indicating the cutoff for PEP above which edges of the graph will be drawn.

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_graph(mem_analysis)

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