Venn Diagram cookbook in R
2021-12-27
Chapter 1 Preface
In this online book, I would like to compare the usage of several Venn Diagram
tool in R environment. It is the investigation of these existing tools prompted
me to develop a new tool ggVennDiagram
.
1.1 Prerequisites
List of packages
VennDiagram
colorfulVennPlot
venn
nVennR
eulerr
venneuler
gplots
ggVennDiagram
ggvenn
You need to install these packages.
<- c("VennDiagram","colorfulVennPlot","gplots","venn",
cran_packages "nVennR", "eulerr","venneuler","ggVennDiagram")
::pkg_load2(cran_packages)
xfun
# GitHub
if (!requireNamespace("ggvenn")){
::install_github("yanlinlin82/ggvenn")
remotes }
1.2 Sessioninfo
sessionInfo()
## R version 4.1.0 (2021-05-18)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 22000)
##
## Matrix products: default
##
## locale:
## [1] LC_COLLATE=Chinese (Simplified)_China.936
## [2] LC_CTYPE=Chinese (Simplified)_China.936
## [3] LC_MONETARY=Chinese (Simplified)_China.936
## [4] LC_NUMERIC=C
## [5] LC_TIME=Chinese (Simplified)_China.936
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## loaded via a namespace (and not attached):
## [1] gtools_3.9.2 tidyselect_1.1.1 xfun_0.27
## [4] venneuler_1.1-0 bslib_0.3.1 purrr_0.3.4
## [7] rJava_1.0-5 generics_0.1.1 colorspace_2.0-2
## [10] vctrs_0.3.8 htmltools_0.5.2 yaml_2.2.1
## [13] utf8_1.2.2 rlang_0.4.12 jquerylib_0.1.4
## [16] pillar_1.6.4 DBI_1.1.1 RVenn_1.1.0
## [19] glue_1.5.0 lambda.r_1.2.4 lifecycle_1.0.1
## [22] stringr_1.4.0 munsell_0.5.0 gtable_0.3.0
## [25] futile.logger_1.4.3 caTools_1.18.2 evaluate_0.14
## [28] knitr_1.36 fastmap_1.1.0 fansi_0.5.0
## [31] colorfulVennPlot_2.4 Rcpp_1.0.7 KernSmooth_2.23-20
## [34] admisc_0.19 ggVennDiagram_1.2.0 scales_1.1.1
## [37] formatR_1.11 jsonlite_1.7.2 gplots_3.1.1
## [40] ggplot2_3.3.5 digest_0.6.28 stringi_1.7.5
## [43] bookdown_0.24 dplyr_1.0.7 grid_4.1.0
## [46] nVennR_0.2.3 ggvenn_0.1.9 tools_4.1.0
## [49] bitops_1.0-7 magrittr_2.0.1 eulerr_6.1.1
## [52] sass_0.4.0 tibble_3.1.5 futile.options_1.0.1
## [55] venn_1.10 crayon_1.4.1 pkgconfig_2.0.3
## [58] ellipsis_0.3.2 assertthat_0.2.1 rmarkdown_2.11
## [61] rstudioapi_0.13 R6_2.5.1 VennDiagram_1.6.20
## [64] compiler_4.1.0