ggplot2 each group consists of only one observation

后端 未结 2 1795
说谎
说谎 2020-12-15 18:33

I am trying to plot the graph using ggplot2

So I have the following dataframe:

   iter        se perf name
1    V1 0.6463573 12.8    e
2    V2 0.3265         


        
2条回答
  •  一向
    一向 (楼主)
    2020-12-15 18:48

    You need to adjust the group aesthetic, replace :

       geom_line(position=pd) 
    

    by

      geom_line(position=pd,aes(group=name))
    

    enter image description here

提交回复
热议问题