plot_heatmap: Render heatmap of STR attribute across samples and loci

View source: R/report.R

plot_heatmapR Documentation

Render heatmap of STR attribute across samples and loci

Description

Given a cross-sample summary data frame as produced by analyze_dataset and the name of a column (e.g., Stutter, Homozygous, ProminentSequences), plot a heatmap of the values for that attribute, with sample identifiers on rows and loci on columns. The attribute will be coerced to numeric.

Usage

plot_heatmap(
  results,
  attribute,
  label_by = c("Allele1Length", "Allele2Length"),
  color = c("white", "pink"),
  breaks = NA,
  ...
)

Arguments

results

combined results list

attribute

character name of column in results$summary to use.

label_by

vector of column names to use when writing the genotype summary values on top of the heatmap cells. Defaults to allele sequence lengths.

color

vector of colors passed to pheatmap::pheatmap.

breaks

vector of breakpoints passed to pheatmap, autocalculated by default.

...

additional arguments to pheatmap.


ShawHahnLab/chiimp documentation built on Aug. 20, 2023, 1:41 a.m.