Closed scbrown86 closed 5 years ago
This is because you are currently using the development version of paletteer, which made breaking changes to its syntax. In future, I will start supporting the new version of paletteer.
Thanks a lot - rolling back to paletteer 0.2.1 (off CRAN) solved the issue.
I am using paletteer 1.0.0, but still got this error, any suggestion? Should I roll back to 0.2.1?
I changed to another conda env, it works. But i haven't figure out which package cause this error.
this one works:
R version 3.6.1 (2019-07-05) Platform: x86_64-conda_cos6-linux-gnu (64-bit) Running under: Ubuntu 16.04.3 LTS
Matrix products: default BLAS/LAPACK: /home/xupb/anaconda3/envs/urd/lib/R/lib/libRblas.so
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=zh_CN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=Cattached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] ggstatsplot_0.3.1 ggplot2_3.3.0 tibble_2.1.3 dplyr_0.8.4 [1] tidyselect_1.0.0 lme4_1.1-21
[3] grid_3.6.1 munsell_0.5.0
[5] codetools_0.2-16 effectsize_0.2.0
[7] miniUI_0.1.1.1 withr_2.1.2
[9] Brobdingnag_1.2-6 metaBMA_0.6.2
[11] colorspace_1.4-1 knitr_1.28
[13] rstudioapi_0.11 stats4_3.6.1
[15] DescTools_0.99.32 ipmisc_1.2.0
[17] ggsignif_0.6.0 rcompanion_2.3.25
[19] labeling_0.3 emmeans_1.4.5
[21] rstan_2.19.3 repr_1.1.0
[23] bbmle_1.0.23.1 mnormt_1.5-6
[25] farver_2.0.3 bridgesampling_1.0-0
[27] coda_0.19-3 vctrs_0.2.3
[29] generics_0.0.2 TH.data_1.0-10
[31] metafor_2.1-0 xfun_0.12
[33] R6_2.4.1 BayesFactor_0.9.12-4.2
[35] palr_0.2.0 pals_1.6
[37] reshape_0.8.8 logspline_2.1.15
[39] assertthat_0.2.1 promises_1.1.0
[41] scales_1.1.0 multcomp_1.4-12
[43] ggExtra_0.9 gtable_0.3.0
[45] multcompView_0.1-8 processx_3.4.2
[47] sandwich_2.5-1 rlang_0.4.5
[49] MatrixModels_0.4-1 EMT_1.1
[51] zeallot_0.1.0 splines_3.6.1
[53] TMB_1.7.16 dichromat_2.0-0
[55] broom_0.5.5 scico_1.1.0
[57] prismatic_0.2.0 inline_0.3.15
[59] reshape2_1.4.3 abind_1.4-5
[61] modelr_0.1.6 backports_1.1.5
[63] httpuv_1.5.2 tools_3.6.1
[65] psych_1.9.12.31 ellipsis_0.3.0
[67] WRS2_1.0-0 ez_4.4-0
[69] Rcpp_1.0.3 plyr_1.8.5
[71] base64enc_0.1-3 jmvcore_1.2.5
[73] purrr_0.3.3 ps_1.3.2
[75] prettyunits_1.1.1 pbapply_1.4-2
[77] cowplot_1.0.0 zoo_1.8-7
[79] LaplacesDemon_16.1.4 haven_2.2.0
[81] ggrepel_0.8.1 cluster_2.1.0
[83] magrittr_1.5 data.table_1.12.8
[85] openxlsx_4.1.4 lmtest_0.9-37
[87] mvtnorm_1.1-0 broomExtra_2.0.0
[89] sjmisc_2.8.3 matrixStats_0.55.0
[91] hms_0.5.3 mime_0.9
[93] xtable_1.8-4 rio_0.5.16
[95] sjstats_0.17.9 pairwiseComparisons_0.2.5 [97] broom.mixed_0.2.4 readxl_1.3.1
[99] gridExtra_2.3 rstantools_2.0.0
[101] compiler_3.6.1 bdsmatrix_1.3-4
[103] maps_3.3.0 crayon_1.3.4
[105] minqa_1.2.4 StanHeaders_2.19.2
[107] htmltools_0.4.0 mgcv_1.8-31
[109] mc2d_0.1-18 later_1.0.0
[111] jcolors_0.0.4 tidyr_1.0.2
[113] libcoin_1.0-5 expm_0.999-4
[115] sjlabelled_1.1.3 jmv_1.2.5
[117] MASS_7.3-51.5 boot_1.3-24
[119] Matrix_1.2-18 car_3.0-6
[121] cli_2.0.2 parallel_3.6.1
[123] insight_0.8.2 forcats_0.4.0
[125] pkgconfig_2.0.3 metaplus_0.7-11
[127] statsExpressions_0.3.1 numDeriv_2016.8-1.1
[129] coin_1.3-1 foreign_0.8-75
[131] skimr_2.1 oompaBase_3.2.9
[133] paletteer_1.0.0 ggcorrplot_0.1.3
[135] estimability_1.3 stringr_1.4.0
[137] callr_3.4.2 digest_0.6.25
[139] parameters_0.5.0 fastGHQuad_1.0
[141] cellranger_1.1.0 nortest_1.0-4
[143] curl_4.3 shiny_1.4.0
[145] gtools_3.8.1 modeltools_0.2-23
[147] rjson_0.2.20 nloptr_1.2.1
[149] lifecycle_0.1.0 nlme_3.1-144
[151] jsonlite_1.6.1 carData_3.0-3
[153] groupedstats_0.2.0 mapproj_1.2.7
[155] fansi_0.4.1 pillar_1.4.3
[157] lattice_0.20-40 loo_2.2.0
[159] fastmap_1.0.1 pkgbuild_1.0.6
[161] survival_3.1-8 glue_1.3.1
[163] bayestestR_0.5.2 zip_2.0.4
[165] stringi_1.4.6 performance_0.4.4
[167] rematch2_2.1.0
this one cause error:
R version 3.5.1 (2018-07-02) Platform: x86_64-conda_cos6-linux-gnu (64-bit) Running under: Ubuntu 16.04.3 LTS
Matrix products: default BLAS/LAPACK: /home/xupb/anaconda3/envs/seuratv3/lib/R/lib/libRblas.so
locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=zh_CN.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=zh_CN.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=zh_CN.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=Cattached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] WRS2_1.0-0 ggstatsplot_0.1.1 ggplot2_3.2.1 tibble_2.1.3
[5] dplyr_0.8.5loaded via a namespace (and not attached): [1] readxl_1.3.1 pairwiseComparisons_0.1.0 [3] backports_1.1.5 broomExtra_2.0.0
[5] plyr_1.8.5 repr_1.1.0
[7] lazyeval_0.2.2 TMB_1.7.16
[9] splines_3.5.1 TH.data_1.0-10
[11] rstantools_2.0.0 inline_0.3.15
[13] digest_0.6.23 htmltools_0.4.0
[15] jcolors_0.0.4 fansi_0.4.1
[17] magrittr_1.5 paletteer_1.0.0
[19] cluster_2.1.0 openxlsx_4.1.4
[21] modelr_0.1.6 matrixStats_0.55.0
[23] MCMCpack_1.4-4 sandwich_2.5-1
[25] prettyunits_1.0.2 colorspace_1.4-1
[27] skimr_2.1 ggrepel_0.8.2
[29] haven_2.2.0 xfun_0.3
[31] libcoin_1.0-5 callr_3.4.2
[33] crayon_1.3.4 jsonlite_1.6.1
[35] lme4_1.1-21 survival_3.1-8
[37] zoo_1.8-7 glue_1.3.1
[39] palr_0.2.0 pals_1.6
[41] gtable_0.3.0 emmeans_1.4.5
[43] MatrixModels_0.4-1 sjstats_0.17.9
[45] sjmisc_2.8.3 scico_1.1.0
[47] statsExpressions_0.1.1 car_3.0-6
[49] pkgbuild_1.0.6 rstan_2.19.3
[51] maps_3.3.0 abind_1.4-5
[53] SparseM_1.78 scales_1.1.0
[55] mvtnorm_1.1-0 miniUI_0.1.1.1
[57] Rcpp_1.0.3 xtable_1.8-4
[59] performance_0.4.4 foreign_0.8-74
[61] mapproj_1.2.7 stats4_3.5.1
[63] StanHeaders_2.21.0-1 rcompanion_2.3.25
[65] modeltools_0.2-23 logspline_2.1.15
[67] ellipsis_0.3.0 pkgconfig_2.0.3
[69] reshape_0.8.8 loo_2.2.0
[71] metaBMA_0.6.2 multcompView_0.1-8
[73] ez_4.4-0 tidyselect_0.2.5
[75] rlang_0.4.5 reshape2_1.4.3
[77] later_1.0.0 ggcorrplot_0.1.3
[79] effectsize_0.2.0 cellranger_1.1.0
[81] munsell_0.5.0 tools_3.5.1
[83] LaplacesDemon_16.1.4 cli_2.0.2
[85] jmvcore_1.2.5 sjlabelled_1.1.3
[87] broom_0.5.0 EMT_1.1
[89] stringr_1.4.0 fastmap_1.0.1
[91] rematch2_2.1.0 mcmc_0.9-6.1
[93] processx_3.4.2 knitr_1.26
[95] zip_2.0.4 purrr_0.3.3
[97] coin_1.3-1 jmv_1.2.5
[99] pbapply_1.4-2 nlme_3.1-143
[101] mime_0.8 quantreg_5.54
[103] groupedstats_0.1.1 ggExtra_0.9
[105] compiler_3.5.1 rstudioapi_0.11
[107] curl_4.3 ggsignif_0.6.0
[109] DescTools_0.99.29 stringi_1.4.5
[111] ps_1.3.2 parameters_0.5.0
[113] Brobdingnag_1.2-6 forcats_0.5.0
[115] purrrlyr_0.0.5 lattice_0.20-38
[117] Matrix_1.2-18 psych_1.9.12.31
[119] nloptr_1.2.1 vctrs_0.2.3
[121] pillar_1.4.3 lifecycle_0.2.0
[123] mc2d_0.1-18 lmtest_0.9-37
[125] bridgesampling_1.0-0 estimability_1.3
[127] data.table_1.11.6 cowplot_1.0.0
[129] insight_0.8.2 httpuv_1.5.2
[131] oompaBase_3.2.9 R6_2.4.1
[133] promises_1.1.0 rio_0.5.16
[135] gridExtra_2.3 BayesFactor_0.9.12-4.2
[137] codetools_0.2-16 dichromat_2.0-0
[139] boot_1.3-24 MASS_7.3-51.5
[141] gtools_3.8.1 assertthat_0.2.1
[143] rjson_0.2.20 nortest_1.0-4
[145] withr_2.1.2 metafor_2.1-0
[147] mnormt_1.5-6 multcomp_1.4-12
[149] broom.mixed_0.2.4 expm_0.999-4
[151] mgcv_1.8-31 bayestestR_0.5.2
[153] parallel_3.5.1 hms_0.4.2
[155] grid_3.5.1 tidyr_1.0.2
[157] coda_0.19-3 minqa_1.2.4
[159] carData_3.0-3 shiny_1.4.0
[161] base64enc_0.1-3
No, you should no longer be getting this error.
Can you please post the exact error you get and the traceback
for it?
Hi @IndrajeetPatil Sorry for delayed reply. Here is traceback():
5: paletteer::scale_color_paletteer_d(package = !!package, palette = !!palette, direction = direction) 4: aesthetic_addon(plot = plot, x = data %>% dplyr::pull({ { x } }), xlab = xlab, ylab = ylab, title = title, subtitle = subtitle, caption = caption, ggtheme = ggtheme, ggstatsplot.layer = ggstatsplot.layer, package = package, palette = palette, direction = direction, ggplot.component = ggplot.component) 3: .f(data = .l[[1L]][[i]], title = .l[[2L]][[i]], ...) 2: purrr::pmap(.l = list(data = df, title = paste(title.prefix, ": ", names(df), sep = "")), .f = ggstatsplot::ggwithinstats, x = { { x } }, y = { { y } }, outlier.label = { { outlier.label } }, type = type, pairwise.comparisons = pairwise.comparisons, pairwise.annotation = pairwise.annotation, pairwise.display = pairwise.display, p.adjust.method = p.adjust.method, effsize.type = effsize.type, partial = partial, effsize.noncentral = effsize.noncentral, bf.prior = bf.prior, bf.message = bf.message, sphericity.correction = sphericity.correction, results.subtitle = results.subtitle, xlab = xlab, ylab = ylab, subtitle = subtitle, caption = caption, sample.size.label = sample.size.label, k = k, conf.level = conf.level, nboot = nboot, tr = tr, path.point = path.point, path.mean = path.mean, sort = sort, sort.fun = sort.fun, axes.range.restrict = axes.range.restrict, mean.label.size = mean.label.size, mean.label.fontface = mean.label.fontface, mean.label.color = mean.label.color, notch = notch, notchwidth = notchwidth, linetype = linetype, outlier.tagging = outlier.tagging, outlier.label.color = outlier.label.color, outlier.color = outlier.color, outlier.shape = outlier.shape, outlier.coef = outlier.coef, mean.plotting = mean.plotting, mean.ci = mean.ci, mean.size = mean.size, mean.color = mean.color, ggtheme = ggtheme, ggstatsplot.layer = ggstatsplot.layer, package = package, palette = palette, direction = direction, ggplot.component = ggplot.component, return = return, messages = messages) 1: ggstatsplot::grouped_ggwithinstats(data = dplyr::filter(data_bugs, condition %in% c("LDLF", "LDHF")), x = condition, y = desire, xlab = "Condition", ylab = "Desire to kill an artrhopod", grouping.var = region, outlier.tagging = TRUE, outlier.label = education, ggtheme = hrbrthemes::theme_ipsum_tw(), ggstatsplot.layer = FALSE, messages = FALSE)
@MichaelPeibo I can't reproduce this.
Note that below I am using the same example as you but with a different dataset:
library(ggstatsplot)
ggstatsplot::grouped_ggwithinstats(
data = dplyr::filter(bugs_long,
condition %in% c("LDLF", "LDHF"),
region %in% c("Europe", "North America")),
x = condition,
y = desire,
xlab = "Condition",
ylab = "Desire to kill an artrhopod",
grouping.var = region,
outlier.tagging = TRUE,
outlier.label = education,
ggtheme = hrbrthemes::theme_ipsum_tw(),
ggstatsplot.layer = FALSE,
messages = FALSE
)
Created on 2020-03-18 by the reprex package (v0.3.0)
@IndrajeetPatil It is OK. I move to another conda env with R/3.6.1. and it worked. Thanks!
Hi, Whenever I try to use any of the functions an error is thrown about using a discrete colour scale.
I've updated both
ggstatsplot
andggplot2
to the latest versions on CRAN but the error still occurs.Error in ggplot2::discrete_scale("colour", palette_name, pal_pal(palette = { : unused argument (package = !!package)
Session Info