Learn R Programming

venneuler (version 1.1-4)

plot.VennDiagram: plot method for Venn diagrams

Description

Plots the Venn diagram returned by venneuler.

Usage

# 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 = "", ...)

Value

Returns NULL invisibly.

Arguments

x

object of the class VennDiagram as returned from the venneuler() function.

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 on the colors component of the x object.

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 col argument is specified.

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 NA then no aplha adjustment to the colors is performed.

main

passed to title()

edges

integer scalar, specifies the number of edges to use when drawing circles

border

color of the border for each circle (recycled) or NULL if no border is to be drawn

lwd

line width used to draw borders of the circles

lty

line type used to draw borders of the circles

col.txt

passed as col to text() for text labels in the circle centers

cex

passed to text() for text labels in the circle centers

font

passed to text() for text labels in the circle centers

family

passed to text() for text labels in the circle centers

...

any further arguments passed to title()

Author

Simon Urbanek

See Also

venneuler

Examples

Run this code
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