Skip to content

Commit

Permalink
fix more deprecations from ggplot2
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Feb 8, 2023
1 parent 155668c commit f452f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/geom_from_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,11 @@ geom_from_list <- function(x, ...) {
} else if (x$geom == "density_2d_polygon") {
stat <- ggplot2::StatDensity2d
x$geom <- "polygon"
if (!"fill" %in% names(x$aes)) x$aes$fill <- "..level.."
if (!"fill" %in% names(x$aes)) x$aes$fill <- quote(after_stat(level))
} else if (x$geom == "density_2d_raster") {
stat <- ggplot2::StatDensity2d
x$geom <- "raster"
if (!"fill" %in% names(x$aes)) x$aes$fill <- "..density.."
if (!"fill" %in% names(x$aes)) x$aes$fill <- quote(after_stat(density))
}

# Position
Expand Down

0 comments on commit f452f44

Please sign in to comment.