gaospecial / ggVennDiagram

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

Change color of edges #39

Closed eggrandio closed 2 years ago

eggrandio commented 2 years ago

Hi,

Is it possible to change the edge color without having to generate a VennPlotData object and customizing it?

It seems that in older versions you could change it by specifying color, but it is no longer possible.

Example here does not produce a plot with black edges.

# install.packages("ggVennDiagram")
library(ggVennDiagram)
# install.packages("ggplot2")
library(ggplot2)

# List of items
x <- list(A = 1:5, B = 2:7, C = 5:10)

# Venn diagram with custom border
ggVennDiagram(x, color = "black", lwd = 0.8, lty = 1) + 
  scale_fill_gradient(low = "#F4FAFE", high = "#4981BF")
gaospecial commented 2 years ago

Maybe that is out of date.

Changing edge color is possible if you use scale_color_manual(), please refer to: https://gaospecial.github.io/ggVennDiagram/articles/using-ggVennDiagram.html#changing-palette-1