Skip to content

Commit bdb7e39

Browse files
committed
Fix #307
1 parent 4d24824 commit bdb7e39

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* The concaveman package is no longer a dependency for `geom_mark_hull()` (#308)
55
* Setting both label and description to `NA` will now turn off label drawing for
66
that mark completely while still drawing the mark
7+
* Fix a bug in `geom_mark_rect()` where the mark would not be shown in all
8+
panels (#307)
79

810
# ggforce 0.4.1
911

R/mark_rect.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ GeomMarkRect <- ggproto('GeomMarkRect', GeomMarkCircle,
7979
data <- data[data$filter, ]
8080
}
8181
if (nrow(data) == 0) return(data)
82-
vec_rbind(!!!lapply(split(data, data$group), function(d) {
82+
vec_rbind(!!!lapply(split(data, list(data$PANEL, data$group)), function(d) {
8383
if (nrow(d) == 1) return(d)
8484
x_range <- range(d$x, na.rm = TRUE)
8585
y_range <- range(d$y, na.rm = TRUE)

0 commit comments

Comments
 (0)