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. Output :
http://r.789695.n4.nabble.com/file/n3664380/output.docx output.docx 
I have  written have the code as below :


# venn diagram for more than 3 sets  using “venn”           
install.packages("gtools")                                                     #
package required for Venn function
library(gplots)                         
dataset1 <- read.spss("C:/Users/Poornima/Desktop/vennD/ventest.sav",
use.value.labels=FALSE, max.value.labels=Inf, to.data.frame=TRUE)               
                              
# opening data.sav file
class(dataset1)                                         
venn(dataset1)                                                         # passing
the data frame as input
 
dataset1                                        
        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



--
View this message in context: 
http://r.789695.n4.nabble.com/venn-diagram-in-percentage-tp3664380p3664380.html
Sent from the R help mailing list archive at Nabble.com.
        [[alternative HTML version deleted]]

______________________________________________
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