ggplot: remove lines at ribbon edges

后端 未结 4 1210
清歌不尽
清歌不尽 2021-02-11 12:51

I am using ggplot to plot time course data (fixation proportions over time to different objects on the screen) and want to use a ribbon to show the SE, but the ribb

4条回答
  •  离开以前
    2021-02-11 13:19

    You can remove the border using the colour argument:

    ggplot(d, aes(Time, y, color = Object, fill = Object)) +
      geom_line(size = 2) +
      geom_ribbon(aes(ymin = lower, ymax = upper), alpha = .3, colour = NA)
    

提交回复
热议问题