Description
When I run the following code from the help page of ?stat_summary()
:
d <- ggplot(mtcars, aes(cyl, mpg)) + geom_point()
d + stat_summary(fun.data = "mean_cl_boot", colour = "red", size = 2)
I don't see any summary stat displayed on the plot and I get following warning:
Warning message:
Computation failed in `stat_summary()`:
Session info:
R version 4.1.2 (2021-11-01)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_3.3.6 dplyr_1.0.8
loaded via a namespace (and not attached):
[1] rstudioapi_0.13 magrittr_2.0.2 tidyselect_1.1.1 munsell_0.5.0
[5] colorspace_2.0-2 R6_2.5.1 rlang_1.0.1 fansi_1.0.2
[9] tools_4.1.2 grid_4.1.2 gtable_0.3.0 utf8_1.2.2
[13] cli_3.1.1 DBI_1.1.2 withr_2.4.3 ellipsis_0.3.2
[17] digest_0.6.29 assertthat_0.2.1 tibble_3.1.6 lifecycle_1.0.1
[21] crayon_1.4.2 farver_2.1.0 purrr_0.3.4 vctrs_0.3.8
[25] glue_1.6.1 labeling_0.4.2 compiler_4.1.2 pillar_1.7.0
[29] generics_0.1.2 scales_1.1.1 pkgconfig_2.0.3