[R] Venn Diagram help!!!!
Jim Lemon
jim at bitwrit.com.au
Tue Jan 31 12:15:24 CET 2012
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
More information about the R-help
mailing list