write.venn.3D.xls: Write a 3D Venn diagram to an Excel file. Compare 3 vectors,...

Description Usage Arguments Value Author(s) Examples

union
intersection
only in x
only in y
only in z.
only in x and y
only in x and z
only in y and z
only in 2 of the 3 comparisons

Description

Optionally, the 3 input vectors can be exported via the exportXYZ=TRUE parameter.

Usage

1
2
write.venn.3D.xls(x, y, z, file, names = c("A", "B", "C"), sortfun = sort,
  exportXYZ = FALSE)

Arguments

x

a vector

y

a vector

z

a vector

file

the xls file to write to

names

a character[3] corresponding to the names for x, y and z

sortfun

the function to sort the elements

exportXYZ

logical: if TRUE, then the original x, y, z values are written in first 3 columns

Value

a 9 or 12 column XLS file is written, with these names:

x

All values in x, if exportXYZ=TRUE

y

All values in x, if exportXYZ=TRUE

z

All values in x, if exportXYZ=TRUE

only in x

Those values only found in x

only in y

Those values only found in y

only in z

Those values only found in z

only in x and y

Those values only found in x and y (ie not in the intersection of all 3)

only in x and z

Those values only found in x and y (ie not in the intersection of all 3)

only in y and z

Those values only found in x and y (ie not in the intersection of all 3)

only in any 2

Those values only found in any of the pairwise comparisons, and not in intersection of all 3

intersect

Those values in all 3

union

Those values in any gene list

Author(s)

Mark Cowley, 2009-02-02

Examples

1
2
f <- tempfile()
write.venn.3D.xls(LETTERS[1:10], LETTERS[7:15], LETTERS[9:20], f)

drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.