suma2Venn              package:maSigPro              R Documentation

_C_r_e_a_t_e_s _a _V_e_n_n _D_i_a_g_r_a_m _f_r_o_m _a _m_a_t_r_i_x _o_f _c_h_a_r_a_c_t_e_r_s

_D_e_s_c_r_i_p_t_i_o_n:

     'suma2Venn' transforms a matrix of characters into a binary matrix
     and creates  a vennDiagram of the common elements between columns

_U_s_a_g_e:

     suma2Venn(x, ...)

_A_r_g_u_m_e_n_t_s:

       x: data frame of character values

     ...: plotting arguments for the vennDiagram function 

_D_e_t_a_i_l_s:

     '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

_V_a_l_u_e:

     'suma2Venn' returns a Venn Plot such as that created by the
     'vennDiagram' funcion

_A_u_t_h_o_r(_s):

     Ana Conesa, aconesa@ivia.es

_S_e_e _A_l_s_o:

     'vennDiagram'

_E_x_a_m_p_l_e_s:

     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)

