Closed lcpmgh closed 5 months ago
Hi there, thanks for the report! I don't quite understand why the text is positioned this way in your example, but for increasing the space you should indeed use the element_text(margin)
setting. The hjust
setting should typically be between 0 and 1 and while hjust = 15
is accepted, how it is interpreted might depend on circumstances.
I'm closing this issue as the problem of spacing text from their keys has a better solution than using hjust
.
After updating to version 3.5.0, I attempted to adjust the distance between the legend keys and labels using
hjust
. However, only some of the text shifted, and the movement’s occurrence and scale seemed to be related to the content of the text. I suspect this might be a bug. By the way, I learned from other users that usingmargin
can perfectly adjust the distance between keys and labels.For the problem I mentioned, here is a simplified example: