suma2Venn {maSigPro} | R Documentation |
suma2Venn
transforms a matrix of characters into a binary matrix and creates
a vennDiagram of the common elements between columns
suma2Venn(x, ...)
x |
data frame of character values |
... |
plotting arguments for the vennDiagram function |
suma2Venn
creates a list of all elements of a matrix or data frame of characters and computes
the presence/absence of each element in each column of the matrix. This results is a numeric
matrix of 1 and 0 which can be taken by the vennDiagram
to generate a Venn Plot
suma2Venn
returns a Venn Plot such as that created by the vennDiagram
funcion
Ana Conesa, aconesa@ivia.es
a <- c("a","b","c", "d", "e", NA, NA) b <- c("a","b","f", NA, NA, NA, NA) c <- c("b","e","f", "h", "i", "j", "k") x <- cbind(a, b,c) suma2Venn(x)