[R] add information above bars of a barplot()
batholdy at googlemail.com
Mon Mar 22 15:52:42 CET 2010
I have a barplot with six clusters of four bars each.
Now I would like to add the exact value of each bar as a number above the bar.
I hoped to get some tips here.
I could simply add text at the different positions, but I don't understand how the margins on the x-axis are calculated
(how can I get / calculate the x-ticks of a barplot?).
Also I would like to code this flexible enough so that it still works when I have more bars in each cluster.
thanks for any suggestions!
More information about the R-help