I am trying to generate a line plot using the following code. But it generates a scatter plot instead of a line plot and gives the following error/warning message:
geom_path: Each group consists of only one observation. Do you need to adjust the group aesthetic?
plt <- ggplot(df, aes(x=truefracs, y=mean_est_fracs, color=Algorithms)) +
geom_line() +
geom_point()
What is missing in the above code to get a line plot?