Change size of a line plot, understand how the size argument works

孤人 提交于 2019-12-02 08:07:55

If you set size inside aes you are mapping it to a variable

`1` = 1

and ggplot2 creates a legend. If you just want to set the size, you can do that outside of aes:

geom_line(aes(group=Case), size = 1)

try this, size outside aes()

ggplot(df,aes(x=x,y=Average,colour=Case)) +
    geom_line(aes(group=Case), size = 1) + 
    geom_point() +
    geom_errorbar(aes(ymin=Lower,ymax=Upper,width=0.25)) +
    labs(y="foo",title="Some plot fu")
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!