99999久久久久久亚洲,欧美人与禽猛交狂配,高清日韩av在线影院,一个人在线高清免费观看,啦啦啦在线视频免费观看www

熱線電話:13121318867

登錄
2019-02-20 閱讀量: 4351
如何刪除添加到圖例的傾斜線?



如何刪除添加到圖例的傾斜線?還有黃色和灰色的點......它為什么會發(fā)生?
library(ggplot2) x <- seq(from = 1, to = 10, by = 1) df = data.frame(x=x, y=x^2, v=2*x) df2 = data.frame(x=x, y=x^2-5*x-10) ggplot(df, aes(x, y)) + geom_point(aes(size = v)) + theme_classic() + scale_size("blabla") + geom_point(data=df2, aes(x, y, color = "blue")) + geom_line(data=df2, aes(x, y, color = "blue")) + geom_hline(aes(color="gray",yintercept=25)) + geom_abline(aes(color="yellow", intercept=0, slope=1)) + scale_color_manual(values = c("blue","gray","yellow"), labels = c("nanana","hhh","abab"), name = "other")

在此輸入圖像描述

0.0000
4
關注作者
收藏
評論(1)

發(fā)表評論
啊啊啊啊啊吖
2019-02-20

geom_pointgeom_line,geom_hline,和geom_abline。為了擺脫這些界限,我們需要

geom_abline(aes(color = "yellow", intercept = 0, slope = 1), show.legend = FALSE)

而對于我們必須添加的點

guides(color = guide_legend(override.aes = list(shape = c(19, NA, NA))))

在此輸入圖像描述

0.0000 0 0 回復
推薦帖子
條評論