Update stat_summary args for ggplot2 3.3.0 (#839)

This commit is contained in:
Charlotte Wickham 2020-10-03 07:41:36 -07:00 committed by GitHub
parent 089e060a06
commit 762b6af400
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -537,9 +537,9 @@ This works because every geom has a default stat; and every stat has a default g
ggplot(data = diamonds) +
stat_summary(
mapping = aes(x = cut, y = depth),
fun.ymin = min,
fun.ymax = max,
fun.y = median
fun.min = min,
fun.max = max,
fun = median
)
```