Skip to content

Commit 2d86f8d

Browse files
committed
fix incorrect bounding box calculation
1 parent f8ff7b8 commit 2d86f8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

R/coord-radial.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ polar_bbox <- function(arc, margin = c(0.05, 0.05, 0.05, 0.05),
491491
return(list(x = c(0, 1), y = c(0, 1)))
492492
}
493493
arc <- sort(arc)
494+
inner_radius <- sort(inner_radius)
494495

495496
# X and Y position of the sector arc ends
496497
xmax <- 0.5 * sin(arc) + 0.5

0 commit comments

Comments
 (0)