I have a barplot that looks like this:
I need to add the names to the top of the bars. But I only wish to label the names that are above the horizontal 0.5 line.
I can add labels as follows:
xx <- barplot(....)
text(xx, data$features, labels=data$features, pos=3, offset=.5)
But this of course adds all values.