I am trying to create Venn diagrams to display 3 genes lists but I get this kind of error: Error in rep(fill, 3) : attempt to replicate an object of type 'closure'
Thank you in advance!
Here's my code:
library(VennDiagram)
color<-c("#6b7fff", "#c3db0f", "#ff4059")
Make Venn diagram from list of groups
venn.diagram(x = list(SET1, SET2, SET3) , category.names = c("s1", "s2", "s3"), filename = 'datadaft_venn.png', output=TRUE, imagetype="png", scaled = FALSE, col = "black", fill = colors, cat.col = colors, cat.cex = 2, margin = 0.15 )
Display saved image
options(repr.plot.height=12, repr.plot.width= 12) library("png") pp <- readPNG("datadaft_venn.png") plot.new() rasterImage(pp,0,0,1.1,1.1)