从ggplot2手册中获取简单图 p <- ggplot(mtcars, aes(x = wt, y=mpg)) + geom_point() p + geom_hline(yintercept=20) 我得到了一条水平线,值为20,如广告所示。
確定! 回上一頁