I cannot get geom_smooth() to work

We'll need a reproducible example to help:
FAQ: How to do a minimal reproducible example ( reprex ) for beginners - meta / Guides & FAQs - Posit Forum (formerly RStudio Community)