Closed
Description
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.
library(tidyverse)
tibble() %>%
ggplot() +
geom_label(aes(0, 0, label = 'text'),
hjust = 0,
size = 20,
)
Created on 2022-03-11 by the reprex package (v2.0.1)