plot_tree: Plot a PRTree as a dendrogram with gamma and P distributions

View source: R/prtree_main_methods.R

plot_treeR Documentation

Plot a PRTree as a dendrogram with gamma and P distributions

Description

Draws a tree representation of a fitted PRTree model with root at top. Terminal nodes show gamma coefficients and a mini heatmap of the distribution of the corresponding column of the probability matrix P.

Usage

plot_tree(x, heatmap_width = 0.8, heatmap_height = 0.08, max_bins = 6,
  ...)

Arguments

x

An object of class prtree.

heatmap_width

Numeric. Width of heatmaps as fraction of node spacing. Default = 0.8 (80% of spacing).

heatmap_height

Numeric. Height of heatmaps. Default = 0.08.

max_bins

Integer. Maximum number of bins in the heatmap. Default = 6.

...

Further arguments passed to plot.

Value

Invisibly returns the original object.


PRTree documentation built on Nov. 23, 2026, 9:08 a.m.