Error Message - geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?

See the FAQ: How to do a minimal reproducible example reprex for beginners. This is missing data to work with. It's harder to attract answers if the problem has to be reverse engineered.