Feature request: rlang/purrr-style anonymous functions in stat_function #3159
It'd be nice to be able to specify rlang/purrr style anonymous functions in
df <- data.frame(x = 1:10, y = (1:10)^2) ggplot(df, aes(x, y)) + geom_point() + stat_function(fun = ~ .x^2)
Associated pull request forthcoming.
The text was updated successfully, but these errors were encountered:
dkahle added a commit to dkahle/ggplot2 that referenced this issue
Feb 22, 2019