Creating Venn Diagram with Transparent Colors in R (2 Examples)

This post illustrates how to draw transparent venn diagrams in R programming.

Example 1: Using venneuler Package to Draw Venn Diagram with Opacity

install.packages("venneuler")   # Install & load venneuler package
library("venneuler")
plot(venneuler(c(area1 = 20,    # Creating venn diagram with venneuler
                 area2 = 75,
                 "area1&area2" = 10)))

r graph figure 1 creating venn diagram transparent colors r

Example 2: Using VennDiagram Package to Draw Venn Diagram with Opacity

install.packages("VennDiagram") # Install VennDiagram package
library("VennDiagram")          # Load VennDiagram
grid.newpage()                  # Creating venn diagram with VennDiagram
draw.pairwise.venn(area1 = 20,
                   area2 = 75,
                   cross.area = 10,
                   fill = c("blue", "orange"))

r graph figure 2 creating venn diagram transparent colors r

Leave a Reply

Your email address will not be published.

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top