README.md

nVennR

Build
Status

nVennR provides an R interface to the nVenn algorithm to create quasi-proportional Venn and Euler diagrams with an arbitrary number of sets.

Installation

You can install the released version of nVennR from CRAN with:

install.packages("nVennR")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("vqf/nVennR")

Example

This is a basic example:

library(nVennR)
myV <- plotVenn(list(set1=c(1, 2, 3), set2=c(2, 3, 4), set3=c(3, 4, 5, 'a', 'b'), set4=c(5, 6, 1, 4)))
listVennRegions(myV)
#> $`0, 0, 0, 1 (set4)`
#> [1] 6
#> 
#> $`0, 0, 1, 0 (set3)`
#> [1] "a" "b"
#> 
#> $`0, 0, 1, 1 (set3, set4)`
#> [1] 5
#> 
#> $`0, 1, 1, 1 (set2, set3, set4)`
#> [1] 4
#> 
#> $`1, 0, 0, 1 (set1, set4)`
#> [1] 1
#> 
#> $`1, 1, 0, 0 (set1, set2)`
#> [1] 2
#> 
#> $`1, 1, 1, 0 (set1, set2, set3)`
#> [1] "3"


Try the nVennR package in your browser

Any scripts or data that you put into this service are public.

nVennR documentation built on Jan. 25, 2021, 1:05 a.m.