VennDiagram: Generate High-Resolution Venn and Euler Plots

ベン図やオイラー図を描画する

> library(VennDiagram)
Loading required package: grid
Loading required package: futile.logger

バージョン: 1.6.16


関数名 概略
VennDiagram-package Venn diagram plotting
calculate.overlap Calculate Overlap
draw.pairwise.venn Draw a Venn Diagram with Two Sets
draw.quad.venn Draw a Venn Diagram with Four Sets
draw.quintuple.venn Draw a Venn Diagram with Five Sets
draw.single.venn Draw a Venn Diagram with a Single Set
draw.triple.venn Draw a Venn Diagram with Three Sets
get.venn.partitions Get the size of individual partitions in a Venn diagram
make.truth.table Make a truth table
venn.diagram Make a Venn Diagram

draw.pairwise.venn

> grid.newpage()
> draw.pairwise.venn(area1      = 100, 
+                    area2      = 70, 
+                    cross.area = 30, 
+                    category   = c("First", "Second"),
+                    fill       = c("light blue", "pink"))

draw.single.venn

Arguments

  • area
  • category
  • lwd
  • lty
  • col
  • fill
  • alpha
  • label.col
  • cex
  • fontface
  • fontfamily
  • cat.pos
  • cat.dist
  • cat.cex
  • cat.col
  • cat.fontface
  • cat.fontfamily
  • cat.just
  • cat.default.pos
  • cat.prompts
  • rotation.degree
  • rotation.centre
  • ind
  • ...
> grid.newpage()
> draw.single.venn(area = 100, category = "First")

draw.triple.venn

> grid.newpage()
> draw.triple.venn(area1 = 22, area2 = 20, area3 = 13, 
+                  n12 = 11, n23 = 4, n13 = 5, n123 = 1,
+                  category = c("First", "Second", "Third"))

venn