This repository was archived by the owner on Aug 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.Rmd
More file actions
62 lines (47 loc) · 1.21 KB
/
Copy pathindex.Rmd
File metadata and controls
62 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
title: "Venn Diagram cookbook in R"
author: "Chun-Hui Gao"
date: "`r Sys.Date()`"
site: bookdown::bookdown_site
documentclass: book
bibliography: [book.bib, packages.bib]
biblio-style: apalike
link-citations: yes
description: "How to draw Venn diagram with R packages."
---
```{r echo=FALSE}
knitr::opts_chunk$set(message = FALSE,
fig.width = 7,
fig.asp = 0.618,
out.width = "90%")
Sys.setenv(LANGUAGE = "en") # 显示英文报错信息
```
# 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`.
## Prerequisites
List of packages
- `VennDiagram`
- `colorfulVennPlot`
- `venn`
- `nVennR`
- `eulerr`
- `venneuler`
- `gplots`
- `ggVennDiagram`
- `ggvenn`
You need to install these packages.
```{r}
cran_packages <- c("VennDiagram","colorfulVennPlot","gplots","venn",
"nVennR", "eulerr","venneuler","ggVennDiagram")
xfun::pkg_load2(cran_packages)
# GitHub
if (!requireNamespace("ggvenn")){
remotes::install_github("yanlinlin82/ggvenn")
}
```
## Sessioninfo
```{r}
sessionInfo()
```