legend_title_margin

0th

Percentile

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

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

Keywords
internal
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.

Note

This is a helper function used internally in the package and not exported. In case you want to use it, you can do so by ggstatsplot:::legend_title_margin. Note that it is ::: and not ::.

Aliases
  • legend_title_margin
Documentation reproduced from package ggstatsplot, version 0.0.2, License: GPL-3 | file LICENSE

Community examples

Looks like there are no examples yet.