If you use simple barplot graphic try this, e.g.:

a<-barplot(some.data)
text(a, some.data, some.data)

The "text" command needs x and y coordinates, by assigning your barplot to
"a" (here), you have the x coordinats and by using the y-values of the
barplot, the values will be written ontop of the bars. Depending on your
scale you can add + (some.vale) behind the first "some.data" statement to
adjust the spacing between bar and text.
The second some.data statement should give the values to be written as text.

--
View this message in context: 
http://r.789695.n4.nabble.com/counts-on-bars-on-barplot-tp4630060p4630096.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.

Reply via email to