Learn R Programming

ggVennDiagram (version 1.2.3)

discern_overlap: 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 Venn discern_overlap(venn, slice = "all")

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

Value

region items

Arguments

venn

Venn object

slice

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

Examples

Run this code
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)

Run the code above in your browser using DataLab