Skip to content

Commit

Permalink
work with fill too
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Apr 27, 2024
1 parent 96822fa commit a5e0975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/guide_colour_ring.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ GuideColourRing <- ggproto(
x <- unit(x, "npc") - unit(sin(theta) * r, "cm")
y <- unit(y, "npc") - unit(cos(theta) * r, "cm")

colour <- params$key$colour
colour <- params$key[[params$aesthetic]]
ring <- polygonGrob(
x = x, y = y, id.lengths = rep(4, nrow(params$key)),
gp = gpar(fill = colour, col = colour, lwd = 1),
Expand Down

0 comments on commit a5e0975

Please sign in to comment.