# NOT RUN {
# The trivial version
f1 <- venn(5, names = letters[1:5])
plot(f1)
# Using data (a numeric vector)
f2 <- venn(c(A = 1, "B&C" = 3, "A&D" = 0.3))
# The table method
venn(pain, factor_names = FALSE)
# Using grouping via the 'by' argument through the data.frame method
venn(fruits, by = list(sex, age))
# Using the matrix method
venn(organisms)
# Using weights
venn(organisms, weights = c(10, 20, 5, 4, 8, 9, 2))
# A venn diagram from a list of sample spaces (the list method)
venn(plants[c("erigenia", "solanum", "cynodon")])
# }
Run the code above in your browser using DataLab