discern_overlap: Calculate region of sets

discern_overlapR Documentation

Calculate region of sets

Description

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")

Arguments

venn

a Venn object

slice

index of Venn members, default is "all"

Value

region items

Author(s)

gaospecial@gmail.com

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)
# is different from
overlap(venn, slice = 1:2)

ggVennDiagram documentation built on May 29, 2024, 10:21 a.m.