Closed hjsbio closed 2 years ago
Using a different shape in ggVennDiagram is possible as you know how to setup a novel shapes for it, see https://gaospecial.github.io/ggVennDiagram/articles/using-new-shapes.html for more information.
By the way, I have changed the default shapes stored in ggVennDiagram's system data, therefore, you may install the developing version and run:
remotes::install_github("gaospecial/ggVennDiagram")
library(ggVennDiagram)
library(ggplot2)
l = list(A=1:3,B=2:4,C=3:6)
data = process_data(Venn(l), shape_id == "301f")
ggplot() +
geom_sf(aes(fill = count), data = venn_region(data)) +
geom_sf(aes(color = id), data = venn_setedge(data), show.legend = FALSE) +
geom_sf_text(aes(label = name), data = venn_setlabel(data)) +
geom_sf_label(aes(label = count), data = venn_region(data)) +
theme_void()
Using a different shape in ggVennDiagram is possible as you know how to setup a novel shapes for it, see https://gaospecial.github.io/ggVennDiagram/articles/using-new-shapes.html for more information.
By the way, I have changed the default shapes stored in ggVennDiagram's system data, therefore, you may install the developing version and run:
remotes::install_github("gaospecial/ggVennDiagram") library(ggVennDiagram) library(ggplot2) l = list(A=1:3,B=2:4,C=3:6) data = process_data(Venn(l), shape_id == "301f") ggplot() + geom_sf(aes(fill = count), data = venn_region(data)) + geom_sf(aes(color = id), data = venn_setedge(data), show.legend = FALSE) + geom_sf_text(aes(label = name), data = venn_setlabel(data)) + geom_sf_label(aes(label = count), data = venn_region(data)) + theme_void()
It works, thanks for your quick reply. Terrific.
Dear authors,
Is their any methods to rotate the whole venn diagram. For example, the default 3-sets venn is like below,
so how can we make it like this: