Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Apr 27, 2024
1 parent ef86128 commit 96822fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/guide_colour_ring.R
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ GuideColourRing <- ggproto(
margin <- ring_margin(params$arc, outer$offset, elems$width + cm(inner$offset))
title <- self$build_title(params$title, elems)
gt <- gtable_add_padding(gt, margin) |>
self$add_title(title, elems$title_position, elems$title$hjust) |>
self$add_title(
title, elems$title_position,
with(elems$title, rotate_just(angle, hjust, vjust))
) |>
gtable_add_padding(elems$margin)

if (!is.zero(elems$background)) {
Expand Down

0 comments on commit 96822fa

Please sign in to comment.