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

Is there a way to plot the 2-set venn diagram "horizontally"? #60

Closed gavieira closed 10 months ago

gavieira commented 10 months ago

Wondering if there is a way to plot it like this now:

image

gaospecial commented 10 months ago

Sorry for this inconvenience.

genes <- paste0("gene",1:1000)
gene_list <- list(A = sample(genes,100),
                   B = sample(genes,200))

# construct a Venn object
venn = Venn(gene_list)
data = process_data(venn, shape_id = "201")
plot_venn(data)

image

gavieira commented 10 months ago

Thanks!! :)

gaospecial commented 2 weeks ago

I added a shape_id param in ggVennDiagram(), so it would be fine with ggVennDiagram(x, shape_id = '201').