plotVenn_gr: Function to plot Venn diagram of overlapping peaks

View source: R/PeakVenn.R

plotVenn_grR Documentation

Function to plot Venn diagram of overlapping peaks

Description

Function to plot Venn diagram of overlapping peaks

Usage

plotVenn_gr(
  x,
  title = "Venn Diagram",
  cols = "Dark2",
  lty = "blank",
  scale = F,
  retVals = F
)

Arguments

x

named list of GenomicRagnes objects to compare. Maximum 5 sets of regions.

title

String indicating title of plot

cols

colour palette to use. Can be RColorBrewer Palette, or string of rgb, hexadecimal, or colour names the same length of 'x'

lty

Line type. Default="blank" for no lines. 1 for solid lines, 2 for dashed lines, etc.

scale

Boolean indicating if circles should be scaled to the size of each region. Works for comaparisons of less than 4.

retVals

Boolean indicating if overlap regions should be returned. Default=FALSE.

Value

Venn diagram plot and if retVals=T, a named list of GenomicRanges for each overlapping region


kevincjnixon/ChIPATAC documentation built on May 25, 2023, 9:33 p.m.