How to define color of intersection in a Venn diagram?

前端 未结 2 1604
无人共我
无人共我 2021-01-13 02:57

I found many resources on how to draw Venn diagrams in R. Stack Overflow has a lot of them. However, I still can\'t draw my diagrams the way I want. Take the following code

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-13 03:42

    It's very easy in eulerr R package

    library(eulerr)
    plot(euler(c("A"=5,"B"=4,"A&B"=2)),quantities = TRUE,fills=c("white","white","red"))
    

    euler set colours

提交回复
热议问题