Skip to content
Prev 359805 / 398503 Next

multiple bar plot annotation text labelling

Hi message,
What you can do is this:

barpos<-barplot(axes=FALSE, ann=FALSE, horiz=TRUE,
 testbarplot[,2], ylab='group', xlab= '(x values)',
 xlim=c(0,10),space=c(1,0,0,0, 1,0,0,0))
text(testbarplot[,2],barpos,
 c('a', 'b', 'c', 'd', 'c', 'e','f', 'g'), pos=4)

as I think you want the values displayed just to the right of the
bars. The "xlim" argument is needed to provide space for the label on
the longest bar.

Jim