Skip to contents

Plot CNV heatmap

Usage

cnv_heatmap(
  segs,
  var = "group",
  label_group = TRUE,
  legend = TRUE,
  exclude_gap = TRUE,
  genome = "hg38"
)

Arguments

segs

dataframe Segments to plot. Need columns "seg_start", "seg_end", "cnv_state"

var

character Column to facet by

label_group

logical Label the groups

legend

logical Display the legend

exclude_gap

logical Whether to mark gap regions

genome

character Genome build, either 'hg38' or 'hg19'

Value

ggplot Heatmap of CNVs along the genome

Examples

p = cnv_heatmap(segs_example)