`geom_smooth()` using formula 'y ~ x' Error: Continuous value supplied to discrete scale

Thank you so much.
i have started seeing the strange plot by ggplots. i dont know where the problems really is.
i wanted to plot a like this graph