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

From: Philipp Pagel <>
Date: Sat, 31 May 2008 23:46:45 +0200

> 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)


> 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:



Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
85350 Freising, Germany
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

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Mon 02 Jun 2008 - 05:57:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 07:30:38 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive