plot method for Venn diagramsPlots the Venn diagram returned by venneuler.
# S3 method for 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 = "", ...)Returns NULL invisibly.
object of the class VennDiagram as returned from the
venneuler() function.
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 on the
colors component of the x object.
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 col argument is specified.
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 NA then no aplha adjustment to the colors is performed.
passed to title()
integer scalar, specifies the number of edges to use when drawing circles
color of the border for each circle (recycled) or
NULL if no border is to be drawn
line width used to draw borders of the circles
line type used to draw borders of the circles
passed as col to text() for text labels in the circle centers
passed to text() for text labels in the circle centers
passed to text() for text labels in the circle centers
passed to text() for text labels in the circle centers
any further arguments passed to title()
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)
Run the code above in your browser using DataLab