VennDiagram in R
1
0
Entering edit mode
2.7 years ago
Maryam ▴ 10

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.0k views
ADD COMMENT
3
Entering edit mode
2.7 years ago
Zhilong Jia ★ 2.2k

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/#/

ADD COMMENT
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2291 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6