plot - Comparing three column sets in R and see the concordance percentage -
i have dataframe called mydf
has 3 set of columns (^sqn, ^wes , ^wgs) , there multiple columns this.i need compare concordance on these 3 sets across dataframe (i.e.,if 0/0 , 0/1 value matching across 3 sets of columns) , plot concordance (may 3 venn-diagram see how overlap). if there na or no data, want exclude row comparison. how can in r?
mydf <- structure(list(`sqn:flt3-tkd:g2503c:d835h` = structure(c(1l, 2l, 1l, 1l, 2l, 1l, 1l), .label = c("0/0", "0/1"), class = "factor"), `wes:flt3-tkd:g2503c:d835h` = c("0/0", "0/0", "0/0", "0/0", "0/1", "0/0", "0/0"), `wgs:flt3-tkd:g2503c:d835h` = c("0/0", "0/0", "0/0", "0/0", "0/1", "", "0/0")), .names = c("sqn:flt3-tkd:g2503c:d835h", "wes:flt3-tkd:g2503c:d835h", "wgs:flt3-tkd:g2503c:d835h"), class = "data.frame", row.names = c("36", "37", "38", "39", "40", "41", "42"))
Comments
Post a Comment