On 07/13/2011 05:28 PM, poornima wrote:
Hi,
I am a beginner with "R" and found a package "venn" to  create a venn
diagram. I tried this “venn� function to generate venn diagram, but i need
*Percentage values* instead of counts(frequency) in the oval(circles) of
Venn diagram.

Hi poornima,
I can't help you with ovals, but intersectDiagram will show percentages:

library(plotrix)
qg<-read.table("qg.dat",header=TRUE,sep="\t")
qg
   qg101 qg102 qg103 qg104 qg105
1      1     1     1     1     0
2      1     1     0     0     1
3      0     1     0     0     0
4      1     1     1     1     1
5      1     0     0     0     0
6      1     1     1     1     1
7      1     1     1     0     0
8      0     1     0     0     1
9      1     1     1     1     1
10     1     1     0     0     0
11     1     0     0     1     0
12     1     0     0     0     0
13     1     1     1     0     0
14     0     0     0     0     0
15     1     1     1     1     1
16     1     1     0     0     0
17     1     1     0     0     1
18     1     0     0     0     1
19     0     1     1     0     1
20     1     1     0     1     1
intersectDiagram(qg,pct=TRUE)

Jim

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to