about abline function

I drew a dotted line using abline(). But I don't want the dotted line to be displayed above the bar plot. Please teach me the way.

something maybe like:

Data <- runif(100)
barplot(Data, panel.first = abline(h = .5, col = 'red', lwd = 3))


1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.