plot_dist_mat: Plot Distance Matrix

View source: R/report.R

plot_dist_matR Documentation

Plot Distance Matrix

Description

Plot a heatmap of a distance matrix.

Usage

plot_dist_mat(
  dist_mat,
  num_alleles = max(dist_mat),
  dist_display_thresh = round(num_alleles * 2/3),
  ...
)

Arguments

dist_mat

distance matrix as produced by summarize_dataset via make_dist_mat.

num_alleles

the maximum number of matching/mismatching alleles. Used to determine color scaling. Defaults to the highest observed distance in the matrix.

dist_display_thresh

distance value at or below which distances will be explicitly drawn on the heatmap. Above this value only the color-coding will signify distance. Use NA to always show numbers.

...

additional arguments passed to pheatmap::pheatmap.

See Also

make_dist_mat


ressy/microsat documentation built on Aug. 24, 2023, 10:09 a.m.