[BioC] Different colors in vennDiagram?

Dan Du tooyoung at gmail.com
Tue Jul 2 15:03:27 CEST 2013


Hi Leif,

A little dig in the vennDiagrm source code shows that, when there are 4
or 5 sets, all function calls to draw set with 'polygon' use only the
first argument in circle.col, e.g.

polygon(relocate_elp(elps, 378, 145, 200), border = circle.col[1], lwd =
lwd)

Some simple fork will do, just replacing those circle.col[1] with the
right index.

Dan

On Tue, 2013-07-02 at 11:33 +0200, Leif Väremo wrote:
> vennDiagram(a,circle.col=c("red","green","blue","yellow"))



More information about the Bioconductor mailing list