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
Feature request: legend.key.spacing argument(s) added to theme #5539
The new reworked legend spacing will allow the spacing between legend key/label elements to be controlled with guide_legend(key.spacing = ...)
It'd be great if you could allow this to be modified through the theme argument as well.
Otherwise, users cannot incorporate their desired legend key spacing up in a theme function. They have to instead use the guides each time they make a plot to adjust it how they want.
Thanks, and great work with the ggplot2 development!
Thank that is a good argument. The reason it wasn't done this way is because the key spacing doesn't apply universally to every non-position guide but only to legends, but I can see the merit in setting this in the theme.
changed the title [-]legend spacing rework: allow legend key spacing to be controlled through the theme[/-][+]legend spacing rework: legend.key.spacing argument to be added to theme[/+]on Nov 25, 2023
changed the title [-]legend spacing rework: legend.key.spacing argument to be added to theme[/-][+]Feature request: legend.key.spacing argument to be added to theme[/+]on Nov 25, 2023
changed the title [-]Feature request: legend.key.spacing argument to be added to theme[/-][+]Feature request: legend.key.spacing argument added to theme[/+]on Nov 25, 2023
changed the title [-]Feature request: legend.key.spacing argument added to theme[/-][+]Feature request: `legend.key.spacing` argument(s) added to `theme`[/+]on Nov 25, 2023
Activity
teunbrand commentedon Nov 25, 2023
Thank that is a good argument. The reason it wasn't done this way is because the key spacing doesn't apply universally to every non-position guide but only to legends, but I can see the merit in setting this in the theme.
[-]legend spacing rework: allow legend key spacing to be controlled through the theme[/-][+]legend spacing rework: legend.key.spacing argument to be added to theme[/+][-]legend spacing rework: legend.key.spacing argument to be added to theme[/-][+]Feature request: legend.key.spacing argument to be added to theme[/+][-]Feature request: legend.key.spacing argument to be added to theme[/-][+]Feature request: legend.key.spacing argument added to theme[/+][-]Feature request: legend.key.spacing argument added to theme[/-][+]Feature request: `legend.key.spacing` argument(s) added to `theme`[/+]teunbrand commentedon Nov 27, 2023
Probably makes most sense to implement this after #5512 is merged.
davidhodge931 commentedon Dec 1, 2023
It'd be awesome, if this could scale with the base_size by default
teunbrand commentedon Dec 1, 2023
It currently does that implicitly, but might indeed be better to do this explicitly.