...: A list or a comma-separated list of vectors in the same class. If vector contains duplicates they will be discarded. If the list doesn't have names the sets will be named as "set_1", "Set_2", "Set_3" and so on. If vectors are given in ..., the set names will be named with the names of the objects provided.
names: By default, the names of the sets are set as the names of the objects in ... (names = NULL). Use names to override this default.
show_elements: Show set elements instead of count. Defaults to FALSE.
split_labels: Splits the element labels into new lines each split_each elements? Defaults to TRUE. This is useful to split labels into several lines when show_elements = TRUE is used.
split_each: The number of elements that will apper in each line when split_labels = TRUE is used.
show_sets: Show set names instead of count. Defaults to FALSE.
fill: Filling colors in circles. Defaults to the default ggplot2 color palette. A vector of length 1 will be recycled.
alpha: Transparency for filling circles. Defaults to 0.5.
stroke_color: Stroke color for drawing circles.
stroke_alpha: Transparency for drawing circles.
stroke_size: Stroke size for drawing circles.
stroke_linetype: Line type for drawing circles. Defaults to "solid".
name_color: Text color for set names. Defaults to "black".
name_size: Text size for set names.
text_color: Text color for intersect contents.
text_size: Text size for intersect contents.
label_sep: The separator for labs when show_elements = TRUE. Defaults to ",".
Returns
A ggplot object.
Examples
library(metan)(A <- letters[1:4])(B <- letters[2:5])(C <- letters[3:7])(D <- letters[4:12])# create a Venn plotvenn_plot(A, B)# Three setsvenn_plot(A, B, C)# Four setsvenn_plot(A, B, C, D)# Use a listdfs <- list(A = A, B = B, C = C, D = D)venn_plot(dfs, show_elements =TRUE, fill = c("red","blue","green","gray"), stroke_color ="black", alpha =0.8, text_size =8, label_sep =".")