J.delasHeras at ed.ac.uk
2010-Feb-03 15:43 UTC
[R] selecting a group of points from a scatterplot?
Hi everyone, is there a way/package in R that would allow me to select a group of points from a scatterplot by drawing a circle around them or some such? I can use 'identify' to pick individual points, but that gets tedious if one has more than 10-20 spots. I can easily select spots within a rectangle defined by picking points using identify... but a simple rectangle sometimes will force me to pick points that I want to leave out. Many graph plotting programs allow you to pick a group of points directly from the graph by circling them with teh mouse cursor. Is that soemthing that I can do in R? Thanks! Jose -- Dr. Jose I. de las Heras Email: J.delasHeras at ed.ac.uk The Wellcome Trust Centre for Cell Biology Phone: +44 (0)131 6513374 Institute for Cell & Molecular Biology Fax: +44 (0)131 6507360 Swann Building, Mayfield Road University of Edinburgh Edinburgh EH9 3JR UK ********************************************* NEW EMAIL from July'09: nach.mcnach at gmail.com ********************************************* -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
On 2/3/10, J.delasHeras at ed.ac.uk <J.delasHeras at ed.ac.uk> wrote:> Many graph plotting programs allow you to pick a group of points directly > from the graph by circling them with teh mouse cursor. Is that soemthing > that I can do in R? >I am not sure that they will do exactly what you need, but check playwith(), latticist() and ggobi(). Liviu
The tkBrush function in the TeachingDemos package and functions in the iplots package also allow brushing. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Liviu Andronic > Sent: Wednesday, February 03, 2010 8:54 AM > To: J.delasHeras at ed.ac.uk > Cc: r-help at r-project.org > Subject: Re: [R] selecting a group of points from a scatterplot? > > On 2/3/10, J.delasHeras at ed.ac.uk <J.delasHeras at ed.ac.uk> wrote: > > Many graph plotting programs allow you to pick a group of points > directly > > from the graph by circling them with teh mouse cursor. Is that > soemthing > > that I can do in R? > > > I am not sure that they will do exactly what you need, but check > playwith(), latticist() and ggobi(). > > Liviu > > ______________________________________________ > R-help at r-project.org 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.