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
While lambda expressions are allowed in stat_function() and a few other places, they aren't in stat_summary() type functions. Example below. Note that the args fun.y, fun.ymin, and fun.ymax are in the dev version fun, fun.min, and fun.max.
ggplot(df, aes(x, y)) +
stat_summary(
fun.y=mean,
fun.ymin=~ mean(.x) -1,
fun.ymax=~ mean(.x) +1
)
#> Warning: Computation failed in `stat_summary()`:#> 'what' must be a function or character string
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
lockbot
locked and limited conversation to collaborators
Jun 24, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
While lambda expressions are allowed in
stat_function()
and a few other places, they aren't instat_summary()
type functions. Example below. Note that the argsfun.y
,fun.ymin
, andfun.ymax
are in the dev versionfun
,fun.min
, andfun.max
.Created on 2019-10-14 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: