venn

Draw Venn Diagrams

https://github.com/dusadrian/venn

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.0%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Draw Venn Diagrams

Basic Info
  • Host: GitHub
  • Owner: dusadrian
  • Language: R
  • Default Branch: master
  • Size: 3.13 MB
Statistics
  • Stars: 32
  • Watchers: 4
  • Forks: 8
  • Open Issues: 0
  • Releases: 0
Created over 10 years ago · Last pushed almost 2 years ago
Metadata Files
Readme

README.md

Package venn

This package produces Venn diagrams for up to seven sets, using any Boolean union of set intersections.

Installation

Install the stable version from CRAN: r install.packages("venn")

Examples

A simple Venn diagram with 3 sets r venn(3)

With a vector of counts: 1 for "000", 2 for "001" etc. r venn(3, counts = 1:8)

Display the first whole set r venn("1--")

Same with r venn("A", snames = "A, B, C")

An equivalent command, from the union of all intersections r venn("100 + 110 + 101 + 111")

Same with r venn("A~B~C + AB~C + A~BC + ABC")

Adding the labels for the intersections r venn("1--", ilabels = TRUE)

Using different parameters for the borders r venn(4, lty = 5, col = "navyblue")

Using ellipses r venn(4, lty = 5, col = "navyblue", ellipse = TRUE)

A 5 sets Venn diagram r venn(5)

A 5 sets Venn diagram using ellipses r venn(5, ellipse = TRUE)

A 5 sets Venn diagram with intersection labels r venn(5, ilabels = TRUE)

And a predefined color style r venn(5, ilabels = TRUE, zcolor = "style")

A union of two sets r venn("1---- + ----1")

Same with r venn("A + E", snames = "A, B, C, D, E")

With different colors r venn("1---- , ----1", zcolor = "red, blue")

Same using SOP - sum of products notation r venn("A, E", snames = "A, B, C, D, E", zcolor = "red, blue")

Same colors for the borders r venn("1---- , ----1", zcolor = "red, blue", col = "red, blue")

A 6 sets diagram r venn(6)

Seven sets "Adelaide" r venn(7)

Artistic version r venn(c("1000000", "0100000", "0010000", "0001000", "0000100", "0000010", "0000001", "1111111"))

Without all borders r venn(c("1000000", "0100000", "0010000", "0001000", "0000100", "0000010", "0000001", "1111111"), borders = FALSE)

Using SOP - sum of products notation r venn("A + B~C", snames = "A, B, C, D")

The input can be a list r set.seed(12345) x <- list(First = 1:20, Second = 10:30, Third = sample(25:50, 15)) venn(x, ilabels = "counts")

Or a dataframe r set.seed(12345) x <- as.data.frame(matrix(sample(0:1, 150, replace = TRUE), ncol = 5)) venn(x, ilabels = "counts")

Using ggplot2 graphics r venn(x, ilabels = "counts", ggplot = TRUE)

Increasing the border size r venn(x, ilabels = "counts", ggplot = TRUE, size = 1.5)

With dashed lines r venn(x, ilabels = "counts", ggplot = TRUE, linetype = "dashed")

Venn diagrams for QCA objects ``` r library(QCA)

data(CVF) obj <- truthTable(CVF, "PROTEST", incl.cut = 0.85)

venn(obj) ```

Custom labels for intersections r pCVF <- minimize(obj, include = "?") venn(pCVF$solution[[1]], zcol = "#ffdd77, #bb2020, #1188cc") cases <- paste(c("HungariansRom", "CatholicsNIreland", "AlbaniansFYROM", "RussiansEstonia"), collapse = "\n") coords <- unlist(getCentroid(getZones(pCVF$solution[[1]][2]))) text(coords[1], coords[2], labels = cases, cex = 0.85)

Owner

  • Name: Adrian Dușa
  • Login: dusadrian
  • Kind: user
  • Location: Bucharest, Romania
  • Company: University of Bucharest

Sociologist, and R enthusiast

GitHub Events

Total
  • Watch event: 3
  • Fork event: 2
Last Year
  • Watch event: 3
  • Fork event: 2

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 43
  • Total Committers: 2
  • Avg Commits per committer: 21.5
  • Development Distribution Score (DDS): 0.047
Past Year
  • Commits: 8
  • Committers: 2
  • Avg Commits per committer: 4.0
  • Development Distribution Score (DDS): 0.25
Top Committers
Name Email Commits
Adrian Dusa d****n@g****m 41
Mehrad Mahmoudian m****n@g****m 2

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 28
  • Total pull requests: 2
  • Average time to close issues: about 1 month
  • Average time to close pull requests: about 4 hours
  • Total issue authors: 25
  • Total pull request authors: 1
  • Average comments per issue: 4.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: 1 day
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 2.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mmahmoudian (4)
  • zhilongjia (1)
  • hsiaoyi0504 (1)
  • neizod (1)
  • cxtaslim (1)
  • lucygarner (1)
  • miraquddus (1)
  • xiekunwhy (1)
  • olechnwin (1)
  • nampharmd (1)
  • chrissy005 (1)
  • dipongkor (1)
  • antoine4ucsd (1)
  • nataliegrima (1)
  • aaelony (1)
Pull Request Authors
  • mmahmoudian (3)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 7,477 last-month
  • Total docker downloads: 581
  • Total dependent packages: 4
  • Total dependent repositories: 10
  • Total versions: 11
  • Total maintainers: 1
cran.r-project.org: venn

Draw Venn Diagrams

  • Versions: 11
  • Dependent Packages: 4
  • Dependent Repositories: 10
  • Downloads: 7,477 Last month
  • Docker Downloads: 581
Rankings
Downloads: 9.0%
Dependent repos count: 9.2%
Dependent packages count: 9.3%
Stargazers count: 11.8%
Average: 13.2%
Forks count: 14.2%
Docker downloads count: 25.8%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.5.0 depends
  • admisc >= 0.10 imports
  • QCA >= 3.9 suggests
  • ggplot2 * suggests
  • ggpolypath * suggests