plot.VennDiagram | R Documentation |
plot
method for Venn diagrams
Plots the Venn diagram returned by venneuler
.
## S3 method for class 'VennDiagram'
plot(x, col, col.fn = function(col) hcl(col * 360, 130, 60),
alpha = 0.3, main = NULL, edges = 200, border = NA, col.txt = 1,
cex = 1, lwd = 1, lty = 1, font = NULL, family = "", ...)
x |
object of the class |
col |
optional, vector of colors (as accepted by the graphics
system) to use. The colors are recycled if necessary (so
passing a scalar will result in all circles having the same color).
If not specified, colors are obtained by calling |
col.fn |
function taking one argument (numeric vector of values
between 0 and 1), returning a vector of colors of the same
length. It is not used if the |
alpha |
numeric, value of the alpha channel(s) for the colors
(hence their opacity). It will override any alpha channel
information in the color specification, recycling as neeed. If set
to |
main |
passed to |
edges |
integer scalar, specifies the number of edges to use when drawing circles |
border |
color of the border for each circle (recycled) or
|
lwd |
line width used to draw borders of the circles |
lty |
line type used to draw borders of the circles |
col.txt |
passed as |
cex |
passed to |
font |
passed to |
family |
passed to |
... |
any further arguments passed to |
Returns NULL
invisibly.
Simon Urbanek
venneuler
vd <- venneuler(c(A=0.3, B=0.3, C=1.1, "A&B"=0.1, "A&C"=0.2, "B&C"=0.1 ,"A&B&C"=0.1))
plot(vd, border=1, lwd = c(1,1,3), cex=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.