且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

绘图中的多个vlines给出错误ggplot2

更新时间: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)))