📜  histogram r add line - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:58.232000             🧑  作者: Mango

代码示例1
# 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")