Learn R Programming

nVennR

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"

Copy Link

Version

Install

install.packages('nVennR')

Monthly Downloads

136

Version

0.2.3

License

MIT + file LICENSE

Maintainer

Victor Quesada

Last Published

January 24th, 2021

Functions in nVennR (0.2.3)

showSVG

Show Venn diagram. Automatically called from plotVenn.
createVennObj

Create nVennObj from scratch
exampledf

Example data frame.
getVennRegion

Get elements in a region
listVennRegions

List elements in every region
setVennRegion

Set number of elements in a region
plotVenn

Create Venn diagram using the nVenn algorithm.