How to improve jagged line graph in ggplot2?

前端 未结 4 1684
無奈伤痛
無奈伤痛 2021-02-14 10:57

Is their any process to improve jagged lines produced by geom_line() joining multiple points into smooth presentable lines in ggplot2?

     lai.se <- structu         


        
4条回答
  •  离开以前
    2021-02-14 11:46

    I'm guessing you're trying to smooth a line. Is this in the ball park of what you're after?

    ggplot(lai.se, aes(x=DAS, y=LAI, colour=DOS)) + 
      geom_errorbar(aes(ymin=LAI-se, ymax=LAI+se), colour ="black", size =.5, width=1, position=position_dodge(.9)) +
      geom_smooth() +
      geom_point()+ theme_bw()
    

    enter image description here

提交回复
热议问题