‘ggVennDiagram’ enables fancy Venn plot with 2-7 sets
and generates publication quality figure.
You can install the released version of ggVennDiagram from CRAN with:
And the development version from GitHub with:
Generate example data.
If you use long category names in Venn plot, labels may be cropped by plot borders. To avoid this, just use a ggplot trick to expand x axis.
p1 <- ggVennDiagram(gene_list,
category.names = c("a very long name","short name","name","another name"))
p1When intersection values only have several members,
ggVennDiagram is efficient to show the values in
places.
ggVennDiagram(gene_list, label = "count")
ggVennDiagram(gene_list, label = "percent")
ggVennDiagram(gene_list, label = "both")
ggVennDiagram(gene_list, label = "none")geom_text()library(ggplot2)
p <- ggVennDiagram(gene_list)
# Red Blue
p + scale_fill_distiller(palette = "RdBu")Some other palletes are:
p + labs(title = "Fancy Venn Diagram of four sets",
subtitle = "Generated by `ggVennDiagram`",
caption = Sys.Date())
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.