ProjectMOSAIC / ggformula

Provides a formula interface to 'ggplot2' graphics.
Other
39 stars 11 forks source link

gf_density warning message about underlying ggplot stat(density) #156

Closed jiyunson closed 1 year ago

jiyunson commented 1 year ago
Warning message:
“`stat(density)` was deprecated in ggplot2 3.4.0.
ℹ Please use `after_stat(density)` instead.”

Not urgent but we're getting this warning message when using gf_density(). Hopefully the underlying stat(density) could just get changed.

nicholasjhorton commented 1 year ago

This change will be needed in a number of places:

gf_functions.R:        "y may be stat(density) or stat(count) or stat(ndensity) or stat(ncount), but see gf_dhistogram().",
gf_functions.R:        "y may be stat(density) or stat(count) or stat(ndensity) or stat(ncount)",
gf_functions.R:    aesthetics = aes(y = stat(density))
gf_functions.R:    aesthetics = aes(y = stat(density))
gf_functions.R:    aesthetics = aes(y = stat(density))
gf_functions.R:    aesthetics = aes(y = stat(density))
gf_functions.R:#'   gf_freqpoly(stat(density) ~ bill_length_mm,
gf_functions.R:        "y may be omitted or stat(density) or stat(count) or stat(ndensity) or stant(ncount)."
ggridges.R:#' `height = stat(density)` (see examples).
ggridges.R:#'   gf_density_ridges(clarity ~ price | cut, height = ~stat(density), stat = "density",
ggridges.R:#'   gf_density_ridges(clarity ~ price | cut, height = ~stat(density), stat = "density",
ggstance.R:#' gf_histogramh(x ~ stat(density), bins = 30)
ggstance.R:    note = "x may be stat(density) or stat(count) or stat(ndensity) or stat(ncount)",
ggstance.R:    note = "x may be stat(density) or stat(count) or stat(ndensity) or stat(ncount)",
ggstance.R:    aesthetics = aes(x = stat(density))
layer_factory.R:#'   `gf_dhistogram()` uses this to set the y aesthetic to `stat(density)`,
newplots.R:#'   `y` may be `stat(density)` or `stat(count)` or `stat(ndensity)` or `stat(ncount)`.
newplots.R:#'   geom_histogram(aes(y = stat(density)),
rpruim commented 1 year ago

I'm closing this issue. A new version of ggformula is on it way to CRAN. If any cases snuck through, we can re-open.