This is a test version of Biostars. For the public version, visit https://www.biostars.org.
VennDiagram in R

Hello,

I wanted to ask that I want to create Venn diagram using package Venn Diagram by using my 2 csv files.

Here is my code from website "https://r-graph-gallery.com/14-venn-diagramm.html"

myCol <- brewer.pal(8, "Pastel2")[c(1, 2)]

venn.diagram(

x = list(Batch1, Batch2), category.names = c("Batch1" , "Batch2 "), filename = '#14_venn_diagramm.png', output=TRUE, imagetype="png" , height = 480 , width = 480 , resolution = 300, compression = "lzw", lwd = 2, lty = 'blank', fill = myCol, cat.cex = 0.6, cat.fontface = "bold", cat.default.pos = "outer", cat.pos = c(-50, 50), cat.dist = rep(0.025, 2), cat.fontfamily = "sans")

I don't know why but venn diagram has been created without my data instead there are 2 colorful circles present separately in the image with there titles.

Can someone help?

studio diagram venn r

1 answer

seems no overlap between batch1 and batch2. Check your data. Also try http://bioinformatics.psb.ugent.be/webtools/Venn/ or http://www.ehbio.com/test/venn/#/

Yeah I made using the first link but I wanted to learn in R.

The second link is so cool I am going to use that.

Thank you so much

Log in to answer this question.