An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-sig-mixed-models/attachments/20110317/7f8ea2dc/attachment.pl>
Identification of points in Scatter Plot
3 messages · Shankar Lanke, Greg Snow, C. E. Timothy Paine
The identify function should work, so something strange is happening, but without knowing more about what you did we can only guess. You can help us help you by giving more details including the exact commands run to create the data, create the plot, and to run identify; the exact error message; if reasonable a version of the data that we can test (use the dput command) otherwise information on your data (use the str command).
Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111 > -----Original Message----- > From: r-sig-mixed-models-bounces at r-project.org [mailto:r-sig-mixed- > models-bounces at r-project.org] On Behalf Of Shankar Lanke > Sent: Thursday, March 17, 2011 9:08 AM > To: r-sig-mixed-models at r-project.org > Subject: [R-sig-ME] Identification of points in Scatter Plot > > 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
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