Learn R Programming

metaseqR (version 1.12.2)

make.venn.pairs: Helper for Venn diagrams

Description

This function creates a list of pairwise comparisons to be performed in order to create an up to 5-way Venn diagram using the R package VennDiagram. Internal use mostly.

Usage

make.venn.pairs(algs)

Arguments

algs
a vector with the names of the sets (up to length 5, if larger, it will be truncated with a warning).

Value

  • A list with as many pairs as the comparisons to be made for the construction of the Venn diagram. The pairs are encoded with the uppercase letters A through E, each one corresponding to order of the input sets.

Examples

Run this code
sets <- c("apple","pear","banana")
pairs <- make.venn.pairs(sets)

Run the code above in your browser using DataLab