-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
guides 📏visual change 👩🎨Rendering change that will affect look of outputRendering change that will affect look of output
Description
If a guide has a label, you can make it flush with the edge of a plot:
ggplot(PlantGrowth) +
aes(x=group, y=weight, fill=group) +
geom_boxplot() +
theme(
legend.position="top",
legend.justification = "left",
legend.margin = margin(0, 0, 0, 0))
But if you set the label to NULL, a there is a gap or misalignment that doesn't seem to be removable:
ggplot(PlantGrowth) +
aes(x=group, y=weight, fill=group) +
geom_boxplot() +
labs(fill = NULL) + # removes legend title
theme(
legend.position="top",
legend.justification = "left",
legend.margin = margin(0, 0, 0, 0))
Metadata
Metadata
Assignees
Labels
guides 📏visual change 👩🎨Rendering change that will affect look of outputRendering change that will affect look of output