make.venn.pairs {metaseqR} | R Documentation

## 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.

### Author(s)

Panagiotis Moulos

### Examples

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

[Package metaseqR version 1.20.0 Index]