[R] How to identify overlapped items from two list and plot them?

Philipp Pagel p.pagel at wzw.tum.de
Sat May 31 23:46:45 CEST 2008


> I have a question on how to identify the overlapped items from two vectors:
> 
> >x<-c(0,1,2)
> >y<-c(1,2,2,3)

intersect(x,y)

> and plot the number of the overlapped as well as non-overlapped in a
> diagram?

Are you talking about a Venn diagram? There is a vennDiagram function in
the limma package and possibly in others.

You will find some hints here:

http://research.stowers-institute.org/efg/R/Math/VennDiagram.htm

cu
	Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
 
 and
 
Institut für Bioinformatik und Systembiologie / MIPS
Helmholtz Zentrum München -
Deutsches Forschungszentrum für Gesundheit und Umwelt
Ingolstädter Landstrasse 1
85764 Neuherberg, Germany
http://mips.gsf.de/staff/pagel



More information about the R-help mailing list