Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ggVennDiagram (version 1.5.2)

venn_data: Prepare Venn data

Description

Prepare Venn data

Usage

process_set_data(venn)

process_region_data(venn, sep = "/", specific = TRUE)

Value

a tibble

Arguments

venn

a Venn object

sep

name and id separator for intersections

specific

whether return ONLY specific items for a subset, default is TRUE

Details

ggVennDiagram, by default, only return the specific subsets of a region. However, sometimes, we want to show all the overlapping items for two or more sets. For example: https://github.com/gaospecial/ggVennDiagram/issues/64 Therefore, we add a 'specific' switch to this function. While 'specific = FALSE', the seperator will be changed from "/" to "~", and all the overlapping items will be returned. This feature is useful in plotting upset plot.

Examples

Run this code
x = list(
A = sample(letters, 8),
B = sample(letters, 8),
C = sample(letters, 8),
D = sample(letters, 8)
)

venn = Venn(x)
process_set_data(venn)
process_region_data(venn)

Run the code above in your browser using DataLab