From 61891ac23638db65ad7d422a2d8837777e432be1 Mon Sep 17 00:00:00 2001 From: Mathieu YECHE <99674960+MathieuYeche@users.noreply.github.com> Date: Fri, 7 Mar 2025 18:35:55 +0100 Subject: [PATCH] fix_6357 See https://github.com/tidyverse/ggplot2/issues/6357 --- R/geom-ribbon.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/geom-ribbon.R b/R/geom-ribbon.R index 746684afbe..fb0c6c9040 100644 --- a/R/geom-ribbon.R +++ b/R/geom-ribbon.R @@ -183,7 +183,7 @@ GeomRibbon <- ggproto("GeomRibbon", Geom, if ((length(aes$fill) > 1 || length(aes$alpha) > 1)) { transformed <- coord$transform(flip_data(data, flipped_aes), panel_params) if (flipped_aes) { - keep <- is.finite(tranformed$y) + keep <- is.finite(transformed$y) args <- list( colours = alpha(data$fill, data$alpha)[keep], stops = rescale(transformed$y)[keep],