You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
text rendered incorrrectly when size and justification parameters are supplied to geom_label() #4753
I posted about this in the RStudio Discourse forum, but didn't explicitly point out the effect of supplying the size parameter. Have received no responses so am posting here.
The problem appears to be an interaction between the size parameter of geom_label() and how the justification parameter values are applied to the text itself, but is not apparent unless off-center justification is supplied.
I think this information might be useful.
Text renders correctly if you rewrite the default label.padding unit. The problem occurs with units "lines" and "char", other units seem to be working fine.
Activity
hadley commentedon Mar 14, 2022
Slightly more minimal reprex:
Created on 2022-03-14 by the reprex package (v2.0.1)
javlon commentedon Aug 9, 2022
I think this information might be useful.
Text renders correctly if you rewrite the default
label.paddingunit. The problem occurs with units "lines" and "char", other units seem to be working fine.