Skip to content

Commit e767ae4

Browse files
committed
Deprecate size on geom_spat_contour
1 parent 854c268 commit e767ae4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/geom_spat_contour.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,14 @@ GeomSpatRasterContour <- ggplot2::ggproto(
249249
default_aes = aes(
250250
weight = 1,
251251
colour = "grey35",
252-
size = .2,
253252
linewidth = .2,
254253
linetype = 1,
255254
alpha = NA
256-
)
255+
),
256+
# To allow using size in ggplot2 < 3.4.0
257+
non_missing_aes = "size",
258+
# Tell ggplot2 to perform automatic renaming
259+
rename_size = TRUE
257260
)
258261

259262
# Stat ----

0 commit comments

Comments
 (0)