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

后端 未结 2 547
一生所求
一生所求 2021-01-23 18:56

I\'m making a multiple lines plot with errorbars. If I don\'t use the size argument, everything is fine:

# sample data
Response=runif(4)
ResponseMin         


        
2条回答
  •  鱼传尺愫
    2021-01-23 19:32

    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")
    

提交回复
热议问题