gaospecial / ggVennDiagram

A 'ggplot2' implement of Venn Diagram.
https://gaospecial.github.io/ggVennDiagram/
GNU General Public License v3.0
282 stars 38 forks source link

update edge linewidth to compatible with the released ggplot2 (>=3.4.0) #46

Closed xiangpin closed 1 year ago

xiangpin commented 1 year ago

The size of some geom in ggplot2 >= (3.4.0) had been replaced with linewidth. see the https://github.com/tidyverse/ggplot2/pull/4959. The original edge_size parameters did not work to adjust the width of edge. This pr has fixed this issue.

> library(ggVennDiagram)
> x <- list(A=1:5,B=2:7,C=3:6,D=4:9)
> p1 <- ggVennDiagram(x)
> p2 <- ggVennDiagram(x, edge_size = 4)
> p1 + p2

捕获