Scatterplot: Error in FUN(X[[i]], …) : object 'Group' not found

前端 未结 1 372
鱼传尺愫
鱼传尺愫 2021-01-04 04:50

I\'m trying to plot some data using ggplot and I\'m having some problems with the significant lines and asterisk.

This is the code I am using:



        
1条回答
  •  伪装坚强ぢ
    2021-01-04 05:18

    aesthetics are inherited by default. The geom_path is trying to look for the Group variable on the path dataset to get the color. You should use inherit.aes = FALSE on the geom_path:

      geom_path(data = path, aes(x = x,y = y), inherit.aes = FALSE )
    

    0 讨论(0)
提交回复
热议问题