Skip to contents

Plot inclusion probabilities for a set of "credible sets"

Usage

plot_cs_matrix(
  prob_mat,
  row_labels = paste0("CS", seq_len(nrow(prob_mat))),
  var_labels = seq_len(ncol(prob_mat)),
  alpha = 0.05
)

Arguments

prob_mat

Numeric matrix (r × p) of probabilities (each row sums to 1).

row_labels

Optional character vector of length r. Default paste0("CS", 1:r).

var_labels

Optional character or numeric vector of length p. Default 1:p.

alpha

Coverage level for credible sets. Default 0.05 (95% coverage).

Value

A ggplot2 object showing credible sets.