0

I am trying to use ggplotly to do the following:

enter image description here

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.

benson23
  • 16,369
  • 9
  • 19
  • 38
JCA
  • 1
  • Please do not post an image of code/data/errors: it breaks screen-readers and it cannot be copied or searched (ref: https://meta.stackoverflow.com/a/285557 and https://xkcd.com/2116/). Please just include the code, console output, or data (e.g., `data.frame(...)` or the output from `dput(head(x))`) directly. – r2evans Jan 19 '22 at 19:39
  • Welcome to SO, JCA! Please make this question *reproducible*. This includes sample code you've attempted (including listing non-base R packages, and any errors/warnings received), sample *unambiguous* data (e.g., `data.frame(x=...,y=...)` or the output from `dput(head(x))`), and intended output given that input. Refs: https://stackoverflow.com/q/5963269, [mcve], and https://stackoverflow.com/tags/r/info. – r2evans Jan 19 '22 at 19:40
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jan 28 '22 at 08:49

0 Answers0