utility function to draw Venn diagram of two or three character vectors. User need to specify category names and file name to store png file.

draw_venn(x, cat.name, f.name)

Arguments

x

A list of character vectors.

cat.name

A character vector of category names

f.name

A string. output file name.

Value

A png file. Venn Diagram of two or three sets

Author

Seongyong Park (2020-08-18)

Examples

x1 = as.character(c(1:5)) x2 = as.character(c(3:10)) draw_venn(list(x1, x2), cat.name=c("x1", "x2"), f.name="test.venn.png")
#> [1] 1