discern_overlap: calculate region of Venn

discern_overlapR Documentation

calculate region of Venn

Description

calculate region of Venn

calculate the unique region defined by 'Venn' object and the parameter 'slice'

Usage

discern_overlap(venn, slice = "all")

## S4 method for signature 'Venn'
discern_overlap(venn, slice = "all")

## S4 method for signature 'Polygon'
discern_overlap(venn, slice = "all")

Arguments

venn

Venn object

slice

a numeric vector indicating the index of slice, default is "all"

Value

region items

Examples

library(ggVennDiagram)
venn <- Venn(list(A=1:3,B=2:5,C=c(1L,3L,5L)))

discern_overlap(venn, slice = "all")
# is equal to
overlap(venn, slice = "all")

# however, `discern_overlap()` only contains specific region
discern_overlap(venn, slice = 1:2)


ggVennDiagram documentation built on Aug. 14, 2023, 5:09 p.m.