Skip to content
/ VennItem Public

❗ This is a read-only mirror of the CRAN R package repository. VennItem — Generate Venn Diagrams with Items Listed in the Sections. Homepage: https://github.com/microbialman/VennItem Report bugs for this package: https://github.com/microbialman/VennItem/issues

License

Notifications You must be signed in to change notification settings

cran/VennItem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VennItem

VennItem provides a simple interface to generate Venn diagrams from two or three sets, listing the overlapping items as lists in the appropriate sections. The lists can be split into columns or shorterned for large sets and the plot is generated using ggplot allowing further customisations.

Installation

You can install the development version of VennItem from GitHub with:

# install.packages("pak")
pak::pak("microbialman/VennItem")

Examples

Basic example showing two small sets.

library(VennItem)
sets <- list(Fruit_A = c("apple","banana","coconut","orange"), Fruit_B = c("banana","kiwi","lemon","orange"), Fruit_C = c("banana","kiwi","apple","pear","lime"))
vennItem(sets, set_label_size = 4)

Example of larger sets showing column formatting ability.

big_sets <- list(Fruit_A = c("apple","banana","durian","lychee","grapes","pear","melon"),
 Fruit_B = c("banana","kiwi","satsuma","orange","lemon","lime"),
 Fruit_C = c("banana","kiwi","apple","pear","coconut"))

vennItem(big_sets, ncol_items = 2)

Example of larger sets showing shortening.

big_sets <- list(Fruit_A = c("apple","banana","durian","lychee","grapes","pear","melon"),
 Fruit_B = c("banana","kiwi","satsuma","orange","lemon","lime"),
 Fruit_C = c("banana","kiwi","apple","pear","coconut"))

vennItem(big_sets, max_items_per_region = 2)

About

❗ This is a read-only mirror of the CRAN R package repository. VennItem — Generate Venn Diagrams with Items Listed in the Sections. Homepage: https://github.com/microbialman/VennItem Report bugs for this package: https://github.com/microbialman/VennItem/issues

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages