venn_plot: plot a venn graphics

Description Usage Arguments Value Note Author(s) Examples

View source: R/venn.R

Description

plot a venn graphics it wrap VennDiagram and make venn more simple

Usage

1
2
3
venn_plot(data, fillColor = NULL, fileName = NULL, main = NULL,
  fontSize = 1.5, fontColor = "white", saveType = c("tiff", "png"),
  Margin = 0.1)

Arguments

data

a list for your group data

fillColor

a vector for fill your venn plot default fillColor is provided

fileName

a character for your outputfile name

main

a character for the title in your venn plot default main is NULL

fontSize

a number for your label size default fontSize is 1.5

fontColor

a character for your label color default fontColor is white

saveType

a character for your save file type png or tiff

Margin

a number for your venn margin more Margin less size in your venn graphics

Value

a tiff or png file for your venn graphics

Note

Since the venn.diaram() is not support pdf type file so your fillName not allow pdf type file

Author(s)

chencheng <chencheng@onmath.cn>

Examples

1
2
3
4
5
6
7
oneName <- function() paste(sample(LETTERS,5,replace=TRUE),collapse="")
geneNames <- replicate(1000,oneName())
GroupA <- sample(geneNames,400,replace = F)
GroupB <- sample(geneNames,300,replace = F)
GroupC <- sample(geneNames,200,replace = F)
GroupD <- sample(geneNames,500,replace = F)
venn_plot(data=list(A=GroupA,B=GroupB,C=GroupC,D=GroupD),fileName='test_venn_plot.tiff')

jamebluntcc/myRtools documentation built on May 17, 2019, 2:44 p.m.