Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

### Bug fixes

* Fixed regression where `geom_area()` didn't draw panels with single groups
when `stat = "align"` (@teunbrand, #6680)
* Fixed regression where `draw_key_rect()` stopped using `fill` colours
(@mitchelloharawild, #6609).
* Fixed regression where `scale_{x,y}_*()` threw an error when an expression
Expand Down
7 changes: 6 additions & 1 deletion R/geom-ribbon.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ GeomRibbon <- ggproto("GeomRibbon", Geom,
data <- unclass(data) #for faster indexing

# In case the data comes from stat_align
upper_keep <- if (is.null(data$align_padding)) TRUE else !data$align_padding
upper_keep <- TRUE
if (!is.null(data$align_padding)) {
upper_keep <- !data$align_padding
# `align_padding` can be NA when group is the only group in panel
upper_keep[is.na(upper_keep)] <- TRUE
}

# The upper line and lower line need to processed separately (#4023)
positions_upper <- data_frame0(
Expand Down