更新时间:2021-12-27 04:03:14
以下内容对我有用:
ggplot(tmp,aes(x, y, colour=category)) + geom_line() + geom_vline(data=tmp[c(13,26),],aes(xintercept=as.numeric(x)))
绘图中的多个vlines给出错误ggplot2
循环中的多个绘图列表 (ggplot2) - 列表元素被覆盖