Re: [R] Insert values to histogram

From: JCFaria <joseclaudio.faria_at_gmail.com>
Date: Fri, 06 May 2011 04:02:44 -0700 (PDT)

An alternative approach:

library(fdth)
fd <- fdt(rnorm(1e3, m=10, sd=2))
plot(fd)
breaks <- with(fd, seq(breaks["start"], breaks["end"], breaks["h"])) mids <- 0.5 * (breaks[-1] + breaks[-length(breaks)]) y <- fd$table[, 2]
text(x=mids, y=y,

     lab=y,
     pos=3)

HTH,
JCFaria

--
View this message in context: http://r.789695.n4.nabble.com/Insert-values-to-histogram-tp3498140p3502237.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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 Fri 06 May 2011 - 12:24:57 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Sat 07 May 2011 - 13:10:05 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.

list of date sections of archive