[R] Venn diagram
Paul Artes
paul_h_artes at yahoo.co.uk
Thu May 31 18:42:38 CEST 2007
I'm really glad to see this topic come up. Area-proportional Venn diagrams
are a phantastic way to visualize agreement. For the 2-rater scenario this
is straightforward; here are two examples from my own work that were done in
R. (I'm far too embarrassed to enclose the code).
http://myweb.dal.ca/partes/venn_example.jpg
For 3 (or more!) variables, it becomes tricky, but Chow and Ruskey have
solved this recently (see link below).
http://www.cs.uvic.ca/~ruskey/Publications/VennArea/VennArea.html
I think there is even a Java applet for demonstration purposes.
It would be phantastic to have a good R-implementation of this...
Unfortunately my own skills are several log units below what's required. I
have written to Chow and Ruskey before but unfortunately not heard anything.
Anyone up for the job??
Best wishes
Paul
Nina Hubner wrote:
>
> Hello,
>
>
>
> I am a total beginner with “R” and found a package “venn” to
> create a venn diagram.
>
> The problem is, I cannot create the vectors required for the diagram.
>
> The manual say:
> "R> venn(accession, libname, main = "All samples")
> where accession was a vector containing the codes identifying
> the RNA sequences, and libname was a vector containing the codes
> identifying the tissue sample (library)."
>
>
> The structure of my data is as follows:
>
>
>
> R> structure(list(cyto = c("A", “B”, “C”, “D”), nuc = c(“A”, “B”, “E”,
> “”),
> chrom = c(“B”, “F”, “”, “”)),.Names = c("cyto", "Nuc", "chrom"))
>
>
> accession should be "A", "B",.... and libname schould be "cyto",
> "nuc" and "chrom" as I understand it...
>
>
> Could you help me?
>
>
>
> Sorry, that might be a very simple question, but I am a total beginner
> as said before! The question has already been asked, but unfortunately
> there was no answer...
>
>
>
> Thank you a lot,
>
> Nina Hubner
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
>
--
View this message in context: http://www.nabble.com/Venn-diagram-tf3846402.html#a10897668
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list