Skip to content

Commit 540ce7b

Browse files
committed
consider panel as grouping structure
1 parent 0f7d790 commit 540ce7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-path.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ GeomPath <- ggproto("GeomPath", Geom,
1919
# middle since you expect those to be shown by a break in the line
2020
aesthetics <- c(self$required_aes, self$non_missing_aes)
2121
complete <- stats::complete.cases(data[names(data) %in% aesthetics])
22-
kept <- stats::ave(complete, data$group, FUN = keep_mid_true)
22+
kept <- stats::ave(complete, data$group, data$PANEL, FUN = keep_mid_true)
2323
data <- data[kept, ]
2424

2525
if (!all(kept) && !params$na.rm) {

0 commit comments

Comments
 (0)