-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Not sure if it's a recent change (I'm using the dev version fresh from github), but with a large enough font the legend title collides with the legend and I can't find any setting to move it.
MRE
set.seed(123)
dummy <- data.frame(x=runif(10), y=runif(10), f = gl(2,5))
ggplot(dummy, aes(x,y, shape=f)) +
geom_point() +
labs(shape="guide") +
theme_grey(24)
With the default font size things are OK, albeit snug
With a larger font size (graphic aimed for slides), however,
I tried,
legend.margin = margin(100,100,100,100)
legend.spacing.y = unit(1,"cm")
legend.title = element_text(vjust = 2)
also played with guide_legend etc. to no avail.