jolars / eulerr

Area-Proportional Euler and Venn Diagrams with Ellipses
https://jolars.github.io/eulerr/
GNU General Public License v3.0
129 stars 18 forks source link

Custom overlap colour? #73

Closed zx8754 closed 3 years ago

zx8754 commented 3 years ago

Can we set custom colour for overlapping sections, currently it is blending the colours of two sets, in below example sets are red and green, so the overlap colour is orange. Can we set it to be, for example, black?

# R version 4.0.2
# eulerr_6.1.0
library(eulerr) 

fit <- euler(c("A" = 1, "B" =  10, "A&B" = 5))
plot(fit, fills = list(fill = c("red", "green")), legend = list(side = "right"))

image

Related SO post:

zx8754 commented 3 years ago

Oh, looks like it is possible to give colours to overlaps, from the example in the Vignette:

zx8754 commented 3 years ago

@jolars regarding linked SO post, I understand why it is happening, I tried to explain with my answer, looks like OP is not happy.

You might want to explain it better. Question has a bounty, now :)