Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

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")
Source by www.sthda.com #
 
PREVIOUS NEXT
Tagged: #histogram #add #line
ADD COMMENT
Topic
Name
2+3 =