plot_Theta: Plot a Mutual Hazard Network

View source: R/plot_fns.R

plot_ThetaR Documentation

Plot a Mutual Hazard Network

Description

This function plots a Mutual Hazard Network by separating the diagonal entries from the off-diagonal entries.

Usage

plot_Theta(
  Theta,
  mutations = NULL,
  full = TRUE,
  sort_diag = TRUE,
  to_show = NULL
)

Arguments

Theta

An n-by-n matrix representing a Mutual Hazard Network.

mutations

A list of mutation names, which must be unique values. If no names are given, then the mutation IDs will be used.

full

A boolean flag indicating whether the full MHN is shown (default: TRUE). If not, then only mutations with non-zero off-diagonal entries will be shown.

sort_diag

A boolean flag indicating whether the rows and columns of the MHN are sorted based on the decreasing order of the diagonal entries (default: TRUE).

to_show

A vector indicating which rows and columns of the MHN are shown (default: NULL).


cbg-ethz/TreeMHN documentation built on Jan. 29, 2024, 1:29 p.m.