Error in rep(fill, 3) : attempt to replicate an object of type 'closure'
0
0
Entering edit mode
2.7 years ago
BioNerd • 0

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)

diagram Venn • 588 views
ADD COMMENT

Login before adding your answer.

Traffic: 1593 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