[R] Identifying points in a plot that have duplicate values

David Barron mothsailor at googlemail.com
Mon Mar 5 16:29:17 CET 2007


Have a look at ?sunflowerplot, which not only produces a scatterplot
showing multiple points with the same coordinates using special
symbols, but will also produce a list showing the number of points at
each coordinate as well.

On 05/03/07, David Lloyd <DavidLloyd at mail2lloyd.com> wrote:
> I have code like this: -
>
> #-----------------------------------------------------------------------
> ------------------------------------------------------
>
> x=scan()
> 0 0 0 0 0 1 2 3 4
>
> y=scan()
> 1 1 1 2 2 1 3 4 5
>
> plot(x,y)
>
> identify(0,1,3) #Allows me to select manually to identify co-ordinate
> (0,1) as being duplicated 3 times
> identify(0,2,2) #Allows me to select manually to identify co-ordinate
> (0,2) as being duplicated 2 times
> #-----------------------------------------------------------------------
> ------------------------------------------------------
>
> Is there not a way I can automatically display if points are duplicated
> and by how many times?
>
> I thought if I 'jittered' the points ever so slightly I could get an
> idea of how many duplicates there are but with >100 points the graph
> looks very messy.
>
> Regards
> DaveL
>
>
>
>
>
>
>
>
> Click for free info on getting an MBA and make $200K/ year
>
>
>
>
> Need cash? Click to get a payday loan
> <http://tagline.bidsystem.com/fc/CAaCDCZ60nyjrrOboFeUJgRjigwgNftK/>
>
>
>
> <span id=m2wTl><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR>Get the Free email that has everyone talking at <a href=http://www.mail2world.com target=new>http://www.mail2world.com</a><br>  <font color=#999999>Unlimited Email Storage &#150; POP3 &#150; Calendar &#150; SMS &#150; Translator &#150; Much More!</font></font></span>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP



More information about the R-help mailing list