Last chance! 50% off unlimited learning
Sale ends in
suma2Venn
transforms a matrix of characters into a binary matrix and creates
a vennDiagram of the common elements between columns
suma2Venn(x, ...)
suma2Venn
returns a Venn Plot such as that created by the
vennDiagram
funcionsuma2Venn
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
vennDiagram
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)
Run the code above in your browser using DataLab