Can someone please help me fix the issue "Caused by an error in `FUN()" ? Reading the error messages, but I don't find the mistake that occurred with my code though.
Here is the error message:
Error in geom_smooth():
! Problem while computing aesthetics. Error occurred in the 1st layer.
Caused by an error in FUN():
! object 'x' not found
Thank you and it is fixed and the problem's solved. mmm They are exactly the same that I coded too. When I copied and pasted your code which is the same as mine, it worked. I wonder why mine was gotton the error..