Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

A 'ggplot2' Implement of Venn Diagram

v1.1.0
GPL-3
Authors
Chun-Hui Gao [aut, cre] (<https://orcid.org/0000-0002-1445-7939>), Guangchuang Yu [ctb] (<https://orcid.org/0000-0002-6485-8781>), Adrian Dusa [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.