ggstatsplot (version 0.0.3)

legend_title_margin: Custom function to set upper and lower margins to legend title in ggplot2

Description

Custom function to set upper and lower margins to legend title in ggplot2

Usage

legend_title_margin(plot, t.margin = unit(0, "mm"), b.margin = unit(3,
  "mm"))

Arguments

plot

Plot with the legend title whose margins need to be modified.

t.margin, b.margin

Margins in grid units.

Value

A plot with desired margins between the legend title and the legend.

References

https://stackoverflow.com/questions/39247025/increase-space-between-legend-title-and-labels-in-ggplot2