[R-sig-ME] Identification of points in Scatter Plot
C. E. Timothy Paine
timothy.paine at ieu.uzh.ch
Thu Mar 17 18:15:03 CET 2011
Dear shankar,
Assuming your data.frame is named "X",
try
plot(X$X, X$Y)
text(X$X, X$Y, labels = X$ID, pos = 1)
You may want to direct general questions like this to the "R-help" listserv.
Best wishes,
tim
On Mar 17, 2011, at 4:07 PM, Shankar Lanke wrote:
> Dear All,
>
> I am new to R blog.
>
> I am unable to figure out how to identify specific or some points in XY
> scatter plot.
>
> How to identify a point coordinates in R scatterplot.
>
> For example I have couple of points which are away from the line of identity
> and I want to know the ID's or x,y coordinates of these points as shown in
> the below table.
>
> There is an function identify(X ,labels=DV) but there is an error executing
> it.
> ID X Y
> 1 0.5 0.4
> 1 0.2 0.1
> 1 1 2
> 1 4 5
> 2 2.5 3
> 2 3 4
> 2 0.5 0.4
> 2 0.2 0.1
> 2 1 2
> 2 4 5
> 2 2.5 3
> 2 3 4
> 3 0.5 0.4
> 3 0.2 0.1
> 3 1 2
> 3 4 5
> 3 2.5 3
> 3 3 4
>
> --
> Regards,
> Shankar Lanke Ph.D.
> University at Buffalo
> Office # 716-645-4853
> Fax # 716-645-2886
> Cell # 678-232-3567
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
______________________
C. E. Timothy Paine
Institut für Evolutionsbiologie und Umweltwissenschaften
Universität Zürich
Winterthurerstrasse 190
CH-8057 Zürich Switzerland
timothy.paine at ieu.uzh.ch
office: ++41 (0)44 635 61 20
skype: cetimothypaine
manuplants.org/paine
More information about the R-sig-mixed-models
mailing list