Last chance! 50% off unlimited learning
Sale ends in
venn("1--")
zone <- getZones(4:7, 3)
# a list of length 1
polygon(zone[[1]], col="lightblue")
# for 5 sets, the content of the 5th set but not in the first set is a
# list of two zones
venn("0---1")
zones <- getZones(seq(1, 15, by = 2), 5)
# this time a list of length 2
# (re)coloring the first zone (union)
polygon(zones[[1]], col="lightblue")
# and the second zone (union)
polygon(zones[[2]], col="lightblue")
Run the code above in your browser using DataLab