涂上两行之间的区域

时间:2018-11-06 15:15:15

标签: r ggplot2 plot

a <- seq(from = 0, to = 1, by = 0.01)
plot(y = c(a, rep(1, times = 30)), x = 1:131, ylim = c(1, 0), type = "l")
abline(h = 0)

如何为两条线之间的区域着色?

0 个答案:

没有答案