calculate the unique region defined by `Venn` object and the parameter `slice`.
discern_overlap(venn, slice = "all")
# S4 method for class 'Venn'
discern_overlap(venn, slice = "all")
region items
library(ggVennDiagram)
venn <- Venn(list(A=1:3,B=2:5,C=c(1L,3L,5L)))
discern_overlap(venn, slice = "all")
#> [1] 3
# is equal to
overlap(venn, slice = "all")
#> [1] 3
# however, `discern_overlap()` only contains specific region
discern_overlap(venn, slice = 1:2)
#> [1] 2
# is different from
overlap(venn, slice = 1:2)
#> [1] 2 3