if (FALSE) { # requireNamespace("VennDiagram", quietly = TRUE)
# Score of 1 (0% overlap)
overlap_circle(1)
# Score of 3.5 (25% overlap)
overlap_circle(3.5)
# Score of 6.84 (81.8% overlap)
overlap_circle(6.84)
# Changing labels
overlap_circle(3.12, categories = c("Humans", "Animals"))
# \donttest{
# Saving to file (PDF or PNG)
plot <- overlap_circle(3.5)
ggplot2::ggsave(plot,
file = tempfile(fileext = ".pdf"), width = 7,
height = 7, unit = "in", dpi = 300
)
# Change for your own desired path
# }
}
Run the code above in your browser using DataLab