【发布时间】:2013-08-12 14:30:16
【问题描述】:
当使用stat_smooth() 和geom_point 时,有没有办法移除阴影拟合区域,但只绘制其外部边界?我知道我可以通过以下方式移除阴影区域:
geom_point(aes(x=x, y=y)) + geom_stat(aes(x=x, y=y), alpha=0)
但是我怎样才能使它的外部边界(外部曲线)仍然可见为微弱的黑线?
【问题讨论】:
-
没有
geom_stat。你的意思是stat_smooth? -
按照OP,应该是
c+stat_smooth(fill = "grey50", size = 2, alpha = 0) -
有
stat_smooth或geom_smooth。
标签: r plot ggplot2 regression