venndetail: Extract shared and unique subsets

Description Usage Arguments Details Value Author(s) Examples

View source: R/venndetail.R

Description

Extracts shared and unique elements from groups provided to the function.This base function will create a formal class venn object and can also graphically plot the amount of objects in each group. The plot will be in the form of a traditional venn diagram as default.And users can also use vennpie or upset methods to display the result.

Usage

1
2
venndetail(x, sep = "_", abbr = FALSE, minlength = 3,
  abbr.method = "both side")

Arguments

x

A list of variables with group names.

sep

symbol character used when concatenating group names into subset names (default: ‘_’).

abbr

Boolean indicating whether to abbreviate subset names (default: FALSE).

minlength

Minmal length for the subset name.

abbr.method

a character string specifying the method used. Partial matches allowed. (default: both side).

Details

Extract shared and unique subsets

Value

venn object and figures

Author(s)

Kai Guo

Examples

1
2
3
4
A <- sample(1:100, 40, replace = FALSE)
B <- sample(1:100, 60, replace = FALSE)
C <- sample(1:100, 40, replace = FALSE)
res <- venndetail(list(A = A, B = B, C = C))

VennDetail documentation built on Nov. 8, 2020, 8:25 p.m.