Skip to content

Commit 6e6a5fa

Browse files
committed
fix radial displacement
1 parent 183e7ad commit 6e6a5fa

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
@@ -499,6 +499,7 @@ polar_bbox <- function(arc, margin = c(0.05, 0.05, 0.05, 0.05),
499499
return(list(x = c(0, 1), y = c(0, 1)))
500500
}
501501
arc <- sort(arc)
502+
inner_radius <- sort(inner_radius)
502503

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

0 commit comments

Comments
 (0)