Using geom_line with multiple groupings

前端 未结 2 910
既然无缘
既然无缘 2021-02-01 17:42

I have a table as follows:

> testsizes
    size value replicate lane
361   16  6898         1   L1
362   17 10707         1   L1
363   18  1786         1   L1         


        
2条回答
  •  既然无缘
    2021-02-01 18:14

    Based off my comment about interacting the two:

    ggplot(testsizes, aes(x = size, y = value,
                          group = interaction(replicate, lane),
                          colour = lane)) +
     geom_line()
    

    Which gives:

    enter image description here

提交回复
热议问题