R语言中abline函数
作者:互联网
1、
plot(0:10, 0:10, pch = 16, col = "red", xaxs = "i", yaxs = "i") abline(h = 5, lwd = 5) ## 高度
2、
plot(0:10, 0:10, pch = 16, col = "red", xaxs = "i", yaxs = "i") abline(v = 5, lwd = 5) ## 水平
3、
plot(0:10, 0:10, pch = 16, col = "red", xaxs = "i", yaxs = "i") abline(a = 1, b = 2, lwd = 5) ## y = a + bx
标签:10,语言,plot,##,函数,16,abline,yaxs 来源: https://www.cnblogs.com/liujiaxin2018/p/16282983.html