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@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.