Answers for "histogram r add line"

R
0

histogram r add line

# Add vertical line
plot(cars)
abline(v=15, col="blue")
# add 2 vertical lines: change line colors, sizes and types
plot(cars)
abline(v=c(15,20), col=c("blue", "red"), lty=c(1,2), lwd=c(1, 3))
# add an horisontal line
abline(h=40, col="blue")
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language