barplot(counts, main="title", xlab=group, col=rainbow(20) ,legend = rownames(counts), beside=TRUE, xlim=c(1,30)) abline(v=mean(df$ddd), col="red", lwd=2.5)
My question is - how to add abline to the legend? I have tried to throw the legend from barplot area and do something but it did not work
