Skip to content

Commit

Permalink
Fix #307
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Jan 18, 2024
1 parent 4d24824 commit bdb7e39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* The concaveman package is no longer a dependency for `geom_mark_hull()` (#308)
* Setting both label and description to `NA` will now turn off label drawing for
that mark completely while still drawing the mark
* Fix a bug in `geom_mark_rect()` where the mark would not be shown in all
panels (#307)

# ggforce 0.4.1

Expand Down
2 changes: 1 addition & 1 deletion R/mark_rect.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ GeomMarkRect <- ggproto('GeomMarkRect', GeomMarkCircle,
data <- data[data$filter, ]
}
if (nrow(data) == 0) return(data)
vec_rbind(!!!lapply(split(data, data$group), function(d) {
vec_rbind(!!!lapply(split(data, list(data$PANEL, data$group)), function(d) {
if (nrow(d) == 1) return(d)
x_range <- range(d$x, na.rm = TRUE)
y_range <- range(d$y, na.rm = TRUE)
Expand Down

0 comments on commit bdb7e39

Please sign in to comment.