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 messages with geom_km and geom_kmticks and potentially other uses after ggplot2 3.4.0 #27

Open
sebastian-gerdes opened this issue Nov 28, 2022 · 1 comment

Comments

@sebastian-gerdes
Copy link

Dear all,

here a minimal example:

library('survival')
library('ggquickeda')
library('ggplot2')
ggplot(aml, aes(time = time, status = status, color = x)) + geom_km() + geom_kmticks()

The code spits out the following warnings on my system:

Warning messages:
1: The following aesthetics were dropped during statistical transformation: status
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a group aesthetic or to convert a numerical variable into a factor?
2: The following aesthetics were dropped during statistical transformation: status
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a group aesthetic or to convert a numerical variable into a factor?
3: Using the size aesthietic with geom_path was deprecated in ggplot2 3.4.0.
ℹ Please use the linewidth aesthetic instead.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

The result is as it should be, however, something seems not right.

Thanks for any advice / improvements!

Best greetings,
Sebastian

PS:
Here my sessionInfo():

R version 4.2.1 (2022-06-23)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Monterey 12.6.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] ggplot2_3.4.0 ggquickeda_0.2.2 survival_3.4-0

loaded via a namespace (and not attached):
[1] rstudioapi_0.14 magrittr_2.0.3 splines_4.2.1 tidyselect_1.2.0 munsell_0.5.0 colorspace_2.0-3 lattice_0.20-45 R6_2.5.1 rlang_1.0.6
[10] fansi_1.0.3 vipor_0.4.5 dplyr_1.0.10 tools_4.2.1 grid_4.2.1 beeswarm_0.4.0 ggbeeswarm_0.6.0 gtable_0.3.1 utf8_1.2.2
[19] DBI_1.1.3 cli_3.4.1 withr_2.5.0 assertthat_0.2.1 tibble_3.1.8 lifecycle_1.0.3 crayon_1.5.2 Matrix_1.5-1 farver_2.1.1
[28] vctrs_0.5.1 glue_1.6.2 labeling_0.4.2 compiler_4.2.1 pillar_1.8.1 generics_0.1.3 scales_1.2.1 pkgconfig_2.0.3

@sebastian-gerdes sebastian-gerdes changed the title Warning message Warning messages with geom_km and geom_kmticks Nov 28, 2022
@smouksassi
Copy link
Owner

with the latest ggplot2 release I have many things to fix will keep this open for now

@smouksassi smouksassi changed the title Warning messages with geom_km and geom_kmticks Warning messages with geom_km and geom_kmticks and potentially other uses after ggplot2 3.4.0 Nov 28, 2022
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

2 participants