Learn R Programming

caroline (version 0.9.9)

vennMatrix: Create a Venn Ready Matrix out of a List of Factors

Description

The limma package has great functions for making venn diagrams from a matrix. This function is provides upstream functionality to turn a list of factors into this required input format.

Usage

vennMatrix(l)

Value

a matrix with columns for list elements and rows with globally unique factor levels

Arguments

l

a named list of factors

See Also

venCounts

Examples

Run this code

l <- list(a=factor(c('x','y','z')), b=factor(c('w','x','v')))

vennMatrix(l)

Run the code above in your browser using DataLab