ggscatterstats's default output is a warning message, not a plot
GegznaV opened this issue · 4 comments
The code:
ggstatsplot::ggscatterstats(y = Volume, x = Height, data = trees)
gices a warning message and no plot:
Warning: This plot can't be further modified with
ggplot2
functions.
In case you want aggplot
object, setmarginal = FALSE
.
Is it an expected output or a bug?
I don't think it's a good idea to get this message as a default behavior instead of a plot, which I expect as a default output for a plotting function.
No, the default behavior is that the function gives you back both a plot and a warning message.
Here is a reprex
:
ggstatsplot::ggscatterstats(
data = mtcars,
x = wt,
y = mpg
)
#> Warning: This plot can't be further modified with `ggplot2` functions.
#> In case you want a `ggplot` object, set `marginal = FALSE`.
#>
Created on 2019-05-03 by the reprex package (v0.2.1.9000)
Session info
devtools::session_info()
#> - Session info ----------------------------------------------------------
#> setting value
#> version R version 3.6.0 alpha (2019-03-29 r76300)
#> os Windows 10 x64
#> system x86_64, mingw32
#> ui RTerm
#> language (EN)
#> collate English_United States.1252
#> ctype English_United States.1252
#> tz America/New_York
#> date 2019-05-03
#>
#> - Packages --------------------------------------------------------------
#> package * version date lib
#> abind 1.4-5 2016-07-21 [1]
#> assertthat 0.2.1 2019-03-21 [1]
#> backports 1.1.4 2019-04-10 [1]
#> BayesFactor 0.9.12-4.2 2018-05-19 [1]
#> boot 1.3-21 2019-03-01 [2]
#> broom 0.5.2.9001 2019-04-09 [1]
#> broom.mixed 0.2.4.9000 2019-03-14 [1]
#> broomExtra 0.0.2 2019-04-03 [1]
#> callr 3.2.0 2019-03-15 [1]
#> car 3.0-2 2018-08-23 [1]
#> carData 3.0-2 2018-09-30 [1]
#> cellranger 1.1.0 2016-07-27 [1]
#> cli 1.1.0 2019-03-19 [1]
#> cluster 2.0.7-1 2018-04-13 [2]
#> coda 0.19-2 2018-10-08 [1]
#> codetools 0.2-16 2018-12-24 [1]
#> coin 1.3-0 2019-03-08 [1]
#> colorspace 1.4-1 2019-03-18 [1]
#> cowplot 0.9.4 2019-01-08 [1]
#> crayon 1.3.4 2017-09-16 [1]
#> curl 3.3 2019-01-10 [1]
#> data.table 1.12.2 2019-04-07 [1]
#> DEoptimR 1.0-8 2016-11-19 [1]
#> desc 1.2.0 2019-04-03 [1]
#> DescTools 0.99.28 2019-03-17 [1]
#> devtools 2.0.2 2019-04-08 [1]
#> digest 0.6.18 2018-10-10 [1]
#> dplyr 0.8.0.9009 2019-03-15 [1]
#> ellipsis 0.1.0 2019-02-19 [1]
#> emmeans 1.3.4 2019-04-21 [1]
#> EMT 1.1 2013-01-29 [1]
#> estimability 1.3 2018-02-11 [1]
#> evaluate 0.13 2019-02-12 [1]
#> expm 0.999-4 2019-03-21 [1]
#> ez 4.4-0 2016-11-02 [1]
#> fit.models 0.5-14 2017-04-06 [1]
#> forcats 0.4.0 2019-02-17 [1]
#> foreign 0.8-71 2018-07-20 [2]
#> fs 1.2.7 2019-03-19 [1]
#> generics 0.0.2 2019-03-05 [1]
#> ggcorrplot 0.1.2.9000 2018-12-17 [1]
#> ggExtra 0.8 2019-02-23 [1]
#> ggplot2 3.1.1.9000 2019-04-11 [1]
#> ggrepel 0.8.0 2018-05-09 [1]
#> ggsignif 0.5.0 2019-02-20 [1]
#> ggstatsplot 0.0.10.9000 2019-04-19 [1]
#> glue 1.3.1 2019-03-12 [1]
#> groupedstats 0.0.6.9000 2019-03-20 [1]
#> gtable 0.3.0 2019-03-25 [1]
#> gtools 3.8.1 2018-06-26 [1]
#> haven 2.1.0 2019-02-19 [1]
#> highr 0.8 2019-03-20 [1]
#> hms 0.4.2 2018-03-10 [1]
#> htmltools 0.3.6 2017-04-28 [1]
#> httpuv 1.5.1 2019-04-05 [1]
#> httr 1.4.0 2018-12-11 [1]
#> insight 0.2.0 2019-03-29 [1]
#> jmv 0.9.6.1 2019-04-22 [1]
#> jmvcore 0.9.6.4 2019-03-28 [1]
#> knitr 1.22.8 2019-04-13 [1]
#> labeling 0.3 2014-08-23 [1]
#> LaplacesDemon 16.1.1 2018-06-30 [1]
#> later 0.8.0 2019-02-11 [1]
#> lattice 0.20-38 2018-11-04 [2]
#> lazyeval 0.2.2 2019-03-15 [1]
#> libcoin 1.0-4 2019-02-28 [1]
#> lme4 1.1-21 2019-03-05 [1]
#> lmtest 0.9-37 2019-04-30 [1]
#> logspline 2.1.12 2019-02-05 [1]
#> magrittr 1.5 2014-11-22 [1]
#> manipulate 1.0.1 2014-12-24 [1]
#> MASS 7.3-51.2 2019-03-01 [2]
#> Matrix 1.2-17 2019-03-22 [1]
#> MatrixModels 0.4-1 2015-08-22 [1]
#> matrixStats 0.54.0 2018-07-23 [1]
#> mc2d 0.1-18 2017-03-06 [1]
#> memoise 1.1.0 2017-04-21 [1]
#> metaBMA 0.3.9 2017-08-04 [1]
#> metafor 2.0-0 2017-06-22 [1]
#> mgcv 1.8-28 2019-03-21 [1]
#> mime 0.6 2018-10-05 [1]
#> miniUI 0.1.1.1 2018-05-18 [1]
#> minqa 1.2.4 2014-10-09 [1]
#> mnormt 1.5-5 2016-10-15 [1]
#> modelr 0.1.4 2019-02-18 [1]
#> modeltools 0.2-22 2018-07-16 [1]
#> multcomp 1.4-10 2019-03-05 [1]
#> multcompView 0.1-7 2015-07-31 [1]
#> munsell 0.5.0 2018-06-12 [1]
#> mvtnorm 1.0-10 2019-03-05 [1]
#> nlme 3.1-137 2018-04-07 [2]
#> nloptr 1.2.1 2018-10-03 [1]
#> nortest 1.0-4 2015-07-30 [1]
#> openxlsx 4.1.0 2018-05-26 [1]
#> paletteer 0.2.1.9000 2019-03-25 [1]
#> pbapply 1.4-0 2019-02-05 [1]
#> pcaPP 1.9-73 2018-01-14 [1]
#> pillar 1.3.1 2018-12-15 [1]
#> pkgbuild 1.0.3 2019-03-20 [1]
#> pkgconfig 2.0.2 2018-08-16 [1]
#> pkgload 1.0.2 2018-10-29 [1]
#> plyr 1.8.4 2016-06-08 [1]
#> prettyunits 1.0.2 2015-07-13 [1]
#> processx 3.3.0 2019-03-10 [1]
#> promises 1.0.1 2018-04-13 [1]
#> ps 1.3.0 2018-12-21 [1]
#> psych 1.8.12 2019-01-12 [1]
#> purrr 0.3.2 2019-03-15 [1]
#> purrrlyr 0.0.5 2019-03-15 [1]
#> R6 2.4.0 2019-02-14 [1]
#> rcompanion 2.1.7 2019-04-09 [1]
#> Rcpp 1.0.1 2019-03-17 [1]
#> readxl 1.3.1 2019-03-13 [1]
#> remotes 2.0.4 2019-04-10 [1]
#> reshape 0.8.8 2018-10-23 [1]
#> reshape2 1.4.3 2017-12-11 [1]
#> rio 0.5.16 2018-11-26 [1]
#> rjson 0.2.20 2018-06-08 [1]
#> rlang 0.3.4 2019-04-07 [1]
#> rmarkdown 1.12.3 2019-03-25 [1]
#> robust 0.4-18 2017-04-27 [1]
#> robustbase 0.93-4 2019-03-19 [1]
#> rprojroot 1.3-2 2018-01-03 [1]
#> rrcov 1.4-7 2018-11-15 [1]
#> rstudioapi 0.10 2019-03-19 [1]
#> runjags 2.0.4-2 2016-07-25 [1]
#> sandwich 2.5-1 2019-04-06 [1]
#> scales 1.0.0 2018-08-09 [1]
#> sessioninfo 1.1.1 2018-11-05 [1]
#> shiny 1.3.2 2019-04-22 [1]
#> sjlabelled 1.0.17 2019-03-10 [1]
#> sjmisc 2.7.9 2019-03-16 [1]
#> sjstats 0.17.4 2019-03-15 [1]
#> skimr 1.0.5 2019-02-25 [1]
#> stringi 1.4.3 2019-03-12 [1]
#> stringr 1.4.0 2019-02-10 [1]
#> survival 2.43-3 2018-11-26 [2]
#> testthat 2.1.1 2019-04-23 [1]
#> TH.data 1.0-10 2019-01-21 [1]
#> tibble 2.1.1 2019-03-16 [1]
#> tidyr 0.8.3.9000 2019-03-07 [1]
#> tidyselect 0.2.5 2018-10-11 [1]
#> TMB 1.7.15 2018-11-09 [1]
#> usethis 1.5.0 2019-04-07 [1]
#> vctrs 0.1.0.9002 2019-03-07 [1]
#> withr 2.1.2 2018-03-15 [1]
#> WRS2 1.0-0 2019-04-16 [1]
#> xfun 0.6 2019-04-02 [1]
#> xml2 1.2.0 2018-01-24 [1]
#> xtable 1.8-4 2019-04-21 [1]
#> yaml 2.2.0 2018-07-25 [1]
#> zeallot 0.1.0 2018-01-28 [1]
#> zip 2.0.1 2019-03-11 [1]
#> zoo 1.8-5 2019-03-21 [1]
#> source
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> local
#> Github (bbolker/broom.mixed@c2de407)
#> local
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.2)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.3)
#> CRAN (R 3.5.0)
#> Github (r-lib/desc@c860e7b)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> Github (tidyverse/dplyr@df735d1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.2)
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.3)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> Github (r-lib/generics@c15ac43)
#> local
#> Github (daattali/ggExtra@dd74c0f)
#> Github (tidyverse/ggplot2@47d65dd)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> local
#> CRAN (R 3.6.0)
#> local
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.3)
#> Github (yihui/knitr@cf3c219)
#> CRAN (R 3.5.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.2)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.3)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.2)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.2)
#> CRAN (R 3.5.1)
#> Github (EmilHvitfeldt/paletteer@38cdb34)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.0)
#> CRAN (R 3.5.3)
#> Github (rstudio/rmarkdown@503cc5f)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.3)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.2)
#> CRAN (R 3.6.0)
#> Github (tidyverse/tidyr@7a51bfd)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#> Github (r-lib/vctrs@6b8c98a)
#> CRAN (R 3.5.1)
#> R-Forge (R 3.6.0)
#> CRAN (R 3.6.0)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.3)
#> CRAN (R 3.5.1)
#> CRAN (R 3.5.1)
#> CRAN (R 3.6.0)
#> CRAN (R 3.6.0)
#>
#> [1] C:/Users/inp099/Documents/R/win-library/3.6
#> [2] C:/Program Files/R/R-3.6.0alpha/library
Are you trying to render this in an .Rmd
code chunk? Is that where you see this behavior?
If yes, you will have to do the following:
Yes, it is an RStudio notebook in my case. But the solution does not seem very beginner-friendly.
In other packages, I saw function "knit_print" (more information here). Maybe knit_print
would solve the issue?
Closing in favor of ggExtra
issue