error message:

 geom_path: Each group consist of only one observation. Do you need to adjust the group aesthetic?

solution

 

 You only have to add group = 1 into the ggplot or geom_line aes().

 

reference weblinks

stackoverflow

https://stackoverflow.com/questions/27082601/ggplot2-line-chart-gives-geom-path-each-group-consist-of-only-one-observation