[BioC] venn diagrams

Steffen Möller steffen_moeller at gmx.de
Sat Jun 5 19:44:42 CEST 2010


On 06/05/2010 06:45 PM, David Lyon wrote:
> Does anyone know the answer to this simple question
> library(gplots)
> 
> This works great from the console:
> A <- c(1,2,3,4)
> B <- c(1,2,3,4)
> C <- c(1,2,3,4)
> input<-list(A,B,C)
> venn(input)
>  
> When I input the data from flat files each containing in a single col it is only using the first row from each file in the venn diagram
> eg:
>  A <- ("A.file")
>  B <- ("B.file")
>  C <- ("C.file")
>  input<-list(A,B,C)
>  venn(input)
> 
> its returns the venn diagram from only the first row from each file , how do I change the code so it uses every data point in each column.

Hello, the input (‘data’ in the ?venn man page) should be a named list of _vectors_ . If it is something else, try converting it,
maybe like as.vector? I am not familiar with your syntax to read in files.
> a<-("b")
> a
[1] "b"
Maybe something like read.table or so is what you really want?

Just guessing

Steffen



More information about the Bioconductor mailing list