Learn R Programming

numbat (version 1.4.2)

cnv_heatmap: Plot CNV heatmap

Description

Plot CNV heatmap

Usage

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

Value

ggplot Heatmap of CNVs along the genome

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'

Examples

Run this code
p = cnv_heatmap(segs_example)

Run the code above in your browser using DataLab