overlap_pairs: Pairwise intersections of many sets.

Description Usage Arguments Value Examples

Description

overlap_pairs returns the pairwise intersections of the sets in a Venn object.

Usage

1
2
## S4 method for signature 'Venn'
overlap_pairs(venn, slice = "all")

Arguments

venn

(Required) A Venn object.

slice

(Optional) The names or the indices of sets of interest. Default is "all", meaning the pairwise intersections will be calculated for all the sets.

Value

A list showing the pairwise intersections of the sets.

Examples

1
2
3
4
venn = Venn(list(letters[1:10], letters[3:12],
                 letters[6:15], letters[9:18]))
overlap_pairs(venn)
overlap_pairs(venn, slice = 1:3)

Example output

$Set_1...Set_2
[1] "c" "d" "e" "f" "g" "h" "i" "j"

$Set_1...Set_3
[1] "f" "g" "h" "i" "j"

$Set_1...Set_4
[1] "i" "j"

$Set_2...Set_3
[1] "f" "g" "h" "i" "j" "k" "l"

$Set_2...Set_4
[1] "i" "j" "k" "l"

$Set_3...Set_4
[1] "i" "j" "k" "l" "m" "n" "o"

$Set_1...Set_2
[1] "c" "d" "e" "f" "g" "h" "i" "j"

$Set_1...Set_3
[1] "f" "g" "h" "i" "j"

$Set_2...Set_3
[1] "f" "g" "h" "i" "j" "k" "l"

RVenn documentation built on July 19, 2019, 1:02 a.m.