Hi there ! I've got 7 Samples that may contain 29 differents kinds of material.... every line below corresponds to a differente kind of material, example: Sample 1, 2,3,5 and 6 has material 1 .... So I want to know how can I do a Venn Diagram with the data below .... ps ( it was generated by a csv, where every line is sep with (";")) Can someone helps me ? thanks csv file : Sample.1;Sample.2;Sample3;Sample4;Sample6 Sample.1;Sample.3;Sample.6 .....> hs2V1 V2 V3 V4 V5 V6 V7 1 Sample.1 Sample.2 Sample.3 Sample.4 Sample.6 2 Sample.1 Sample.3 Sample.6 3 Sample.1 Sample.2 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7 4 Sample.1 Sample.6 5 Sample.1 Sample.2 6 Sample.2 Sample.3 Sample.6 7 Sample.3 Sample.6 8 Sample.3 Sample.6 9 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7 10 Sample.3 Sample.5 Sample.6 Sample.7 11 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7 12 Sample.3 Sample.6 13 Sample.3 Sample.5 Sample.6 14 Sample.3 Sample.4 Sample.7 15 Sample.3 Sample.4 Sample.5 Sample.6 Sample.7 16 Sample.3 Sample.4 17 Sample.4 Sample.6 18 Sample.4 Sample.5 Sample.6 Sample.7 19 Sample.4 Sample.6 Sample.7 20 Sample.4 Sample.5 Sample.6 21 Sample.4 Sample.6 22 Sample.4 Sample.5 Sample.6 Sample.7 23 Sample.4 Sample.5 Sample.6 Sample.7 24 Sample.4 Sample.5 Sample.6 Sample.7 25 Sample.4 Sample.5 Sample.6 Sample.7 26 Sample.4 Sample.6 Sample.7 27 Sample.4 Sample.6 28 Sample.4 Sample.5 Sample.6 Sample.7 29 Sample.4 Sample.5 Sample.6 Sample.7 -- View this message in context: http://r.789695.n4.nabble.com/Venn-Diagram-help-tp4342882p4342882.html Sent from the R help mailing list archive at Nabble.com.
On 01/31/2012 09:56 AM, rantree wrote:> Hi there ! I've got 7 Samples that may contain 29 differents kinds of > material.... every line below corresponds to a differente kind of material, > example: Sample 1, 2,3,5 and 6 has material 1 .... So I want to know how can > I do a Venn Diagram with the data below .... ps ( it was generated by a csv, > where every line is sep with (";")) Can someone helps me ?Hi rantree, This isn't a Venn diagram, but it does display the populations of all set intersections: hs2<-data.frame(ID=c(1,1,1,1,1,2,2,2,3,3,3,3,3,3,3,4,4, 5,5,6,6,6,7,7,8,8,9,9,9,9,9,10,10,10,10,11,11,11,11,11, 12,12,13,13,13,14,14,14,15,15,15,15,15,16,16,17,17, 18,18,18,18,19,19,19,20,20,20,21,21,22,22,22,22, 23,23,23,23,24,24,24,24,25,25,25,25,26,26,26, 27,27,28,28,28,28,29,29,29,29), const=c("Sample.1","Sample.2","Sample.3","Sample.4","Sample.6", "Sample.1","Sample.3","Sample.6","Sample.1","Sample.2","Sample.3", "Sample.4","Sample.5","Sample.6","Sample.7","Sample.1","Sample.6", "Sample.1","Sample.2","Sample.2","Sample.3","Sample.6","Sample.3", "Sample.6","Sample.3","Sample.6","Sample.3","Sample.4","Sample.5", "Sample.6","Sample.7","Sample.3","Sample.5","Sample.6","Sample.7", "Sample.3","Sample.4","Sample.5","Sample.6","Sample.7","Sample.3", "Sample.6","Sample.3","Sample.5","Sample.6","Sample.3","Sample.4", "Sample.7","Sample.3","Sample.4","Sample.5","Sample.6","Sample.7", "Sample.3","Sample.4","Sample.4","Sample.6","Sample.4","Sample.5", "Sample.6","Sample.7","Sample.4","Sample.6","Sample.7","Sample.4", "Sample.5","Sample.6","Sample.4","Sample.6","Sample.4","Sample.5", "Sample.6","Sample.7","Sample.4","Sample.5","Sample.6","Sample.7", "Sample.4","Sample.5","Sample.6","Sample.7","Sample.4","Sample.5", "Sample.6","Sample.7","Sample.4","Sample.6","Sample.7","Sample.4", "Sample.6","Sample.4","Sample.5","Sample.6","Sample.7","Sample.4", "Sample.5","Sample.6","Sample.7")) x11(width=13) require(plotrix) intersectDiagram(hs2) Jim
Well i really need to do a Venn diagram :( -- View this message in context: http://r.789695.n4.nabble.com/Venn-Diagram-help-tp4342882p4345655.html Sent from the R help mailing list archive at Nabble.com.
There are two packages which may be useful: venneuler and VennDiagram. One of them allows up to four sets; the other is pretty much unlimited. I forget which is which :-( . Oops: there's another, evenn. I haven't used that one. -- Sent from my Cray XK6 "Pendeo-navem mei anguillae plena est."