ggvenn,Venn-method {RVenn} | R Documentation |
Draw the Venn diagram.
Description
Draw the Venn diagram for 2 or 3 sets.
Usage
## S4 method for signature 'Venn'
ggvenn(venn = "Venn", slice = "all",
fill = c("gold", "dodgerblue3", "deeppink"), alpha = 0.5,
thickness = 1.5)
Arguments
venn |
(Required) A |
slice |
(Optional) The names or the indices of the sets of interest.
Default is "all", which is for the cases the |
fill |
(Optional) Fill color of the sets. |
alpha |
(Optional) Opacity of the fill colors. Default is 0.5 in the range of (0, 0.5). |
thickness |
(Optional) Stroke size of the sets. |
Details
This function is based on the packages 'ggplot2' and 'ggforce.' It
has been designed for 2 or 3 sets because Venn diagrams are terrible for
showing the interactions of 4 or more sets. If you need to visualize such
interactions, consider using setmap
.
Value
The function returns the plot in ggplot2 style.
Examples
venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
ggvenn(venn)
ggvenn(venn, slice = c(1, 2), thickness = 0, alpha = 0.3)
[Package RVenn version 1.1.0 Index]