[R] help on Venn's diagram

Jim Lemon jim at bitwrit.com.au
Sun Jan 31 10:20:42 CET 2010


On 01/31/2010 02:13 PM, Zoppoli, Gabriele (NIH/NCI) [G] wrote:
> Hello!
>
> I have this problem: I want to create a Venn's diagram with three lists of genes'names. The first is all the genome, the second a subset of it comprising all mitochondrial genes, and the third including all genes that correlate with a given gene.
>
> This is what I do:
>
>> library(gplots)
>> A<-read.delim("F:/.../mito genes just names.txt")
>> B<-read.delim("F:/.../My gene all cors names.txt")
>> C<-read.delim("F:/.../all genes names.txt")
>> input<-list(A,B,C)
>> venn(input)
>
> However, the output is empty, being no number inside each intersection. I think the issue lyes in the non-numeric nature of the list, but I don't know if a solution for this exists...
>
Hi Gabriele,
As I don't have the data, I can't be sure, but are the names consistent 
across the three files? That is, I suspect that there may be prefixes or 
suffixes that designate different classes (e.g. "m" for mitochondrial).

Jim



More information about the R-help mailing list