Coloring specific areas in Venn Diagrams in R -
i'm using 'venndiagram' package in r. know how make venn diagrams, there way color specific areas of diagram only? example, if had categories a1, a2, , a3, want color area within a1 doesn't overlap other categories.
the venndiagram package doesn't give full control on colors of 7 plotting areas within 3-category venn diagram, allow control color of each individual circle. in case, can desired effect setting color of first region blue , remaining regions white , removing transparency:
library(venndiagram) draw.triple.venn( area1 = 65, area2 = 75, area3 = 85, n12 = 35, n23 = 15, n13 = 25, n123 = 5, category = c("first", "second", "third"), fill = c("blue", "white", "white"), alpha=c(1, 1, 1), lty=c(1, 1, 1), cex = 2, cat.cex = 2, cat.col = c("black", "black", "black") )
Comments
Post a Comment