You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this issue after I'd added a solution to this popular problem with your awesome package and a user asked me to demonstrate how one can do this with geom_smooth.
library(geomtextpath)
#> Loading required package: ggplot2
ggplot(iris, aes(Sepal.Length, Sepal.Width, label="a")) +
geom_textsmooth()
#> `geom_smooth()` using formula 'y ~ x'#> Warning: Computation failed in `stat_smooth()`:#> 'what' must be a function or character string
## works when specifying method argument
ggplot(iris, aes(Sepal.Length, Sepal.Width, label="a")) +
geom_textsmooth(method="loess")
#> `geom_smooth()` using formula 'y ~ x'
I came across this issue after I'd added a solution to this popular problem with your awesome package and a user asked me to demonstrate how one can do this with geom_smooth.
This seems very related to https://stackoverflow.com/questions/42493048/computation-failed-for-stat-summary-what-must-be-a-character-string-or-a-func and tidyverse/ggplot2#1937.
However, as you can see below, I am using reprex, and do have a completely empty session. I strongly assume there must be some objects defined that have names such as "mean" or "lm" that are not disambiguated any longer.
Created on 2022-05-30 by the reprex package (v2.0.1)
Session info
The text was updated successfully, but these errors were encountered: