Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning message regards deprecated 'facets' argument when using mcmc_plot(..., type = "acf") #304

Closed
Helsinki-Ronan opened this issue May 19, 2023 · 2 comments

Comments

@Helsinki-Ronan
Copy link

Dear,

I received the following warning message upon running the below code.

Cheers,
Ronan

mcmc_plot(teno_J1_epistasis, type = "acf")
`Warning message:
-The facets argument of facet_grid() is deprecated as of ggplot2 2.2.0.
ℹ Please use the rows argument instead.
ℹ The deprecated feature was likely used in the bayesplot package.
Please report the issue at https://github.com/stan-dev/bayesplot/issues/.'

sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)

Matrix products: default

locale:
[1] LC_COLLATE=Finnish_Finland.utf8 LC_CTYPE=Finnish_Finland.utf8
[3] LC_MONETARY=Finnish_Finland.utf8 LC_NUMERIC=C
[5] LC_TIME=Finnish_Finland.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] bayesplot_1.10.0 tidybayes_3.0.4 psych_2.3.3 sjPlot_2.8.14
[5] reshape_0.8.9 brms_2.19.0 Rcpp_1.0.10 lubridate_1.9.2
[9] forcats_1.0.0 stringr_1.5.0 purrr_1.0.1 tidyr_1.3.0
[13] tibble_3.2.1 ggplot2_3.4.2 tidyverse_2.0.0 bestNormalize_1.9.0
[17] DHARMa_0.4.6 glmmTMB_1.1.7 dplyr_1.1.2 readr_2.1.4

loaded via a namespace (and not attached):
[1] backports_1.4.1 plyr_1.8.8 igraph_1.4.2 svUnit_1.0.6
[5] TMB_1.9.4 splines_4.2.2 crosstalk_1.2.0 listenv_0.9.0
[9] TH.data_1.1-2 rstantools_2.3.1 inline_0.3.19 digest_0.6.31
[13] butcher_0.3.2 foreach_1.5.2 htmltools_0.5.5 fansi_1.0.4
[17] magrittr_2.0.3 checkmate_2.2.0 doParallel_1.0.17 tzdb_0.4.0
[21] recipes_1.0.6 globals_0.16.2 modelr_0.1.11 gower_1.0.1
[25] RcppParallel_5.1.7 matrixStats_0.63.0 xts_0.13.1 sandwich_3.0-2
[29] hardhat_1.3.0 timechange_0.2.0 prettyunits_1.1.1 colorspace_2.1-0
[33] ggdist_3.3.0 xfun_0.39 jsonlite_1.8.4 crayon_1.5.2
[37] callr_3.7.3 lme4_1.1-33 survival_3.5-5 zoo_1.8-12
[41] iterators_1.0.14 glue_1.6.2 gtable_0.3.3 ipred_0.9-14
[45] emmeans_1.8.6 sjstats_0.18.2 sjmisc_2.8.9 V8_4.3.0
[49] distributional_0.3.2 pkgbuild_1.4.0 rstan_2.26.21 future.apply_1.10.0
[53] abind_1.4-5 scales_1.2.1 mvtnorm_1.1-3 rngtools_1.5.2
[57] ggeffects_1.2.2 miniUI_0.1.1.1 performance_0.10.3 xtable_1.8-4
[61] StanHeaders_2.26.21 stats4_4.2.2 lava_1.7.2.1 prodlim_2023.03.31
[65] DT_0.27 htmlwidgets_1.6.2 threejs_0.3.3 arrayhelpers_1.1-0
[69] posterior_1.4.1 ellipsis_0.3.2 pkgconfig_2.0.3 loo_2.6.0
[73] farver_2.1.1 nnet_7.3-19 utf8_1.2.3 tidyselect_1.2.0
[77] rlang_1.1.1 reshape2_1.4.4 later_1.3.1 munsell_0.5.0
[81] tools_4.2.2 cli_3.6.1 generics_0.1.3 sjlabelled_1.2.0
[85] broom_1.0.4 fastmap_1.1.1 knitr_1.42 processx_3.8.1
[89] future_1.32.0 nlme_3.1-162 doRNG_1.8.6 mime_0.12
[93] compiler_4.2.2 shinythemes_1.2.0 rstudioapi_0.14 curl_5.0.0
[97] stringi_1.7.12 ps_1.7.5 Brobdingnag_1.2-9 lattice_0.21-8
[101] Matrix_1.5-4 nloptr_2.0.3 markdown_1.7 shinyjs_2.1.0
[105] tensorA_0.36.2 vctrs_0.6.2 pillar_1.9.0 lifecycle_1.0.3
[109] bridgesampling_1.1-2 estimability_1.4.1 insight_0.19.1.1 data.table_1.14.8
[113] httpuv_1.6.11 R6_2.5.1 promises_1.2.0.1 gridExtra_2.3
[117] parallelly_1.35.0 codetools_0.2-19 boot_1.3-28.1 colourpicker_1.2.0
[121] MASS_7.3-60 gtools_3.9.4 withr_2.5.0 mnormt_2.1.1
[125] shinystan_2.6.0 multcomp_1.4-23 bayestestR_0.13.1 parallel_4.2.2
[129] hms_1.1.3 grid_4.2.2 rpart_4.1.19 timeDate_4022.108
[133] coda_0.19-4 class_7.3-22 minqa_1.2.5 littleboxes_0.1.0
[137] numDeriv_2016.8-1.1 shiny_1.7.4 base64enc_0.1-3 dygraphs_1.1.1.6

@rok-cesnovar rok-cesnovar transferred this issue from stan-dev/stan May 19, 2023
heavywatal added a commit to heavywatal/bayesplot that referenced this issue Jun 4, 2023
- Replace facets with rows/cols for facet_grid()
- Replace formula ~parameter with vars(parameter)

Addresses stan-dev#304
@SebastianVeuskens
Copy link

The same message occurs when using ac in the plot function for the plotfun argument:

plot(model, plotfun = "ac")
Warning message:
The facets argument of facet_grid() is deprecated as of ggplot2 2.2.0.
ℹ Please use the rows argument instead.
ℹ The deprecated feature was likely used in the bayesplot package.
Please report the issue at https://github.com/stan-dev/bayesplot/issues/.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

@jgabry
Copy link
Member

jgabry commented Jan 17, 2024

Thanks! I think these should now finally be fixed by #305 and #309. Will be doing a release soon.

@jgabry jgabry closed this as completed Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants