[R] How to display data values for points in a plot?
Greg.Snow at imail.org
Wed May 19 01:35:06 CEST 2010
It depends on what you mean by display values. In addition to the other suggestions also look at the identify function as well as TkIdentify and HTKidentify in the TeachingDemos package.
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
greg.snow at imail.org
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Nish
> Sent: Thursday, May 13, 2010 10:33 AM
> To: r-help at r-project.org
> Subject: [R] How to display data values for points in a plot?
> I would like to know how to display values for points in a plot
> funtion. For
> plot( y=dat$a,
> ylim=c(-10, 10),
> xlim=c(-10, 10),
> type = "p",
> col=<vector of colors depending on the value of "b">,
> How can I add a label to each of points here, if I have a list of
> associated with the point.
> Thanks in advance.
> View this message in context: http://r.789695.n4.nabble.com/How-to-
> Sent from the R help mailing list archive at Nabble.com.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help