I am using ggVennDiagram to creat a venn diagram. I would like to set the color of categories manually. Here is what I am trying, however the color of border line of the circles is not changed.
x <- list(A=1:5,B=2:7,C=3:6,D=4:9)
ggVennDiagram(x, label = "count", label_alpha = 0,
color = c("A" = "yellow","B" ="steelblue",'C' = 'red', 'D' = 'black') ,
set_color = c("A" = "yellow","B" ="steelblue", 'C' = 'red', 'D' = 'black')) +
scale_fill_gradient(low = "#F4FAFE", high = "#4981BF")
Any Idea how I can match the colors of circle lines with the name of categories?
Thanks
From
ggVennDiagram
documentation it looks as if you have to build up the venn diagram rather than use theggVennDiagram
function. Maybe this adaptation from the documentation example gives you enough to work on...Updated to include OP's comment for percentage count.
Created on 2021-12-04 by the reprex package (v2.0.1)