findOverlap: find overlap between sets in a list

Description Usage Arguments Details Value Examples

View source: R/findOverlap.R

Description

find overlap between sets in a list

Usage

1
findOverlap(setlist, xlim = c(0, 1), ylim = c(0, 1))

Arguments

setlist

list of character vectors.

xlim

vector with 2 numbers, x axis limits for the venn diagram.

ylim

vector with 2 numbers, y axis limits for the venn diagram.

Details

the function uses geom_path for the dendrogram, so ... takes all arguements that geom_path would also take, such as color, size, etc.

Value

list with 2 items: a data.frame with information about the groups (sizes, coordinates, etc.), and a data.frame containing the x and y coordinates for the venn diagram

Examples

1
2
3
4
5
6
7
8
9
library(ggvenn)
library(ggplot2)

set1 <- rownames(subset(mtcars, mpg>18))
set2 <- rownames(subset(mtcars, qsec>18))
set3 <- rownames(subset(mtcars, cyl<5))
carset <- list(highMpg=set1, highQsec=set2, lowCyl=set3)

findOverlap(carset)

NicolasH2/ggvenn documentation built on Dec. 17, 2021, 5:24 a.m.