Last answered:

07 Feb 2024

Posted on:

31 Jan 2024

0

Regression Line not showing

Regression line is not showing and there's no error too. Please help.

1 answers ( 0 marked as helpful)
Instructor
Posted on:

07 Feb 2024

0

Hi Margaret, 

thanks for reaching out! Your code is almost correct, but you forgot to add the last + between geom_point() and geom_smooth(...) that's why you're only seeing the scatter plot. It's really anoying when it's 99.99% correct but the last 0.01% gives you an error or doesn't output the correct visual. But with time and practice you'll be able to spot those errors when they happen a lot more easily, I guarantee it.

Keep up the good work and let me know if you encounter any other issues.


Best, 

365 Eli

Submit an answer