DrawVenn | R Documentation |
Function based on the VennDiagram package with some customisations. Data.frames are accepted, the venn diagram compares then the colnames or rownames Allows the use of non-ascii characters
DrawVenn(..., a, b, c, d, e, names, fills, cols, titlelab, fig = TRUE,
type = "vec", titlesize, xlwd = 2, xlty = "solid", xalpha = 0.3)
... |
Any non-explicit parameter of the function accepted by VennDiagram::venn.diagram |
a |
First set |
b |
Second set |
c |
Third set |
d |
Fourth set |
e |
Fifth set |
names |
Names that will be outputed on the plot |
fills |
Colors associated with each set which fill the areas |
cols |
Colors associated with each set which will delimit the areas |
titlelab |
Title of the plot |
fig |
boolean; whether if the plot should be directly printed or just sent back as an object |
type |
How the data is structured and should be compared. vec: comparison occurs on the content of the respective vectors; namedV: the names of the vector should be compared; rownames: the row.names of the respective data.frames are used for the comparison; colnames: the col.names of the respective data.frames are used for the comparison. |
titlesize |
Size of the title |
xlwd |
Numeric vector giving the width of each circle's circumference |
xlty |
Numeric vector giving the dash pattern of each circle's circumference |
xalpha |
Numeric vector giving the alpha transparency of each circle's area |
sends back a plot object, which can be directly printed as well.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.