From: Jorge Ivan Velez <jorgeivanvelez_at_gmail.com>

Date: Sun, 06 Mar 2011 00:21:31 -0500

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. Received on Sun 06 Mar 2011 - 05:29:07 GMT

Date: Sun, 06 Mar 2011 00:21:31 -0500

You can try something along the lines of:

On Sat, Mar 5, 2011 at 12:29 PM, Umesh Rosyara <> wrote:

> Dear R users,

*>
**> Here is my problem:
**>
**> # example data
**> name <- c(paste ("M", 1:1000, sep = ""))
**> xvar <- seq(1, 10000, 10)
**> set.seed(134)
**> p <- rnorm(1000, 0.15,0.05)
**> dataf <- data.frame(name,xvar, p)
**> plot (dataf$xvar,p)
**> abline(h=0.05)
**>
**> # I can know which observation number is less than 0.05
**> which (dataf$p < 0.05)
**> [1] 12 20 80 269 272 338 366 368 397 403 432 453 494 543 592 691 723 789
**> 811
**> [20] 854 891 931 955
**>
**> I want to display (label) corresponding names on the plot above:
**> means that 12th observation M12, 20th observation M20 and so on. Please
**> note
**> that I have names not in numerical sequience (rather different names), just
**> provided for this example to create dataset easily.
**>
**> Thanks in advance
**>
**> Umesh R
**>
**>
**> [[alternative HTML version deleted]]
**>
**> ______________________________________________
**> 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.
**>
*

[[alternative HTML version deleted]]

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. Received on Sun 06 Mar 2011 - 05:29:07 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Sun 06 Mar 2011 - 15:00:19 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*