discern: Set difference.

discernR Documentation

Set difference.

Description

discern returns the difference between two group of sets selected from a Venn object. If multiple sets are chosen for the slices, union of those sets will be used.

Usage

discern(venn, slice1, slice2 = "all")

## S4 method for signature 'Venn'
discern(venn, slice1, slice2 = "all")

Arguments

venn

(Required) A Venn object.

slice1

(Required) The name or the index of the set of interest. Multiple sets can be selected.

slice2

(Optional) The name or the index of the set of interest. Multiple sets can be selected. Default is all the sets except the sets of slice1.

Value

A vector showing the difference between slice1 and slice2.

Author(s)

tyakyol@gmail.com

Examples

venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
discern(venn, slice1 = 1)
discern(venn, slice1 = c(1, 2), slice2 = 3)

ggVennDiagram documentation built on May 29, 2024, 10:21 a.m.