plot.bgmycprobmat: Conspecificity heatmap with the phylogenetic tree

View source: R/plot.bgmycprobmat.R

plot.bgmycprobmatR Documentation

Conspecificity heatmap with the phylogenetic tree

Description

Plots a "bgmycprobmat" matrix ordered by tree topology, alongside the tree (cf. Reid & Carstens 2012, Fig. 5).

Usage

## S3 method for class 'bgmycprobmat'
plot(x, tree, palette = "classic", save_pdf = NULL, legend_cex = 0.5, ...)

Arguments

x

A "bgmycprobmat" matrix from spec.probmat().

tree

A "phylo" object with the same tip labels.

palette

"classic" (heat colours), "viridis" or "RdYlBu".

save_pdf

Optional PDF path (10 x 8 in).

legend_cex

Legend text size.

...

Unused.

Value

No return value; called for side effects.

Examples

set.seed(123)
data(east10)
res <- bgmyc.singlephy(east10[[1]], mcmc = 100, burnin = 10, thinning = 10)
plot(spec.probmat(res), east10[[1]])

bGMYC4 documentation built on Nov. 23, 2026, 5:07 p.m.