Skip to contents

Plot BayesDCA delta

Usage

plot_delta(
  obj,
  strategies = NULL,
  type = c("best", "useful", "pairwise"),
  colors = NULL,
  labels = NULL,
  linewidth = 1.5
)

Arguments

obj

BayesDCA or BayesDCASurv object

strategies

Character vector with models or tests to plot. If null, compares either first two in obj$strategies or the first one against Treat all/none (if only one available).

type

One of "best", "useful", or "pairwise".

colors

Named vector with color for each model or test. If provided for a subset of models or tests, only that subset will be plotted.

labels

Named vector with label for each model or test.

linewidth

Width of plotted lines.

plot_list

If TRUE, returns a list of separate ggplot objects.

Value

A ggplot object.

Examples

data(PredModelData)
fit <- dca(PredModelData)
plot_delta(fit)