Skip to content
Merged
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
@@ -1,5 +1,7 @@
# ggplot2 (development version)

* Fixed regression where `geom_area()` didn't draw panels with single groups
when `stat = "align"` (@teunbrand, #6680)
* Fixed regression where `position_stack(vjust)` was ignored when there are
only single groups (#6692)
* Fixed bug where `NA` handling in `geom_path()` was ignoring panels (@teunbrand, #6533)
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