I am trying to use ggplotly to do the following:

It then gives me this error:
geom_smooth() using formula y ~ x.
Error in gsub("\n", br(), a, fixed = TRUE) : input string 1832 is invalid in this locale
Any fixes? I'm on a Mac.
I am trying to use ggplotly to do the following:

It then gives me this error:
geom_smooth() using formula y ~ x.
Error in gsub("\n", br(), a, fixed = TRUE) : input string 1832 is invalid in this locale
Any fixes? I'm on a Mac.