align_legend: Change alignment of ggplot legend title

Description Usage Arguments

View source: R/align_legend.R

Description

From Clause Wilke answer here: https://stackoverflow.com/questions/48000292/center-align-legend-title-and-legend-keys-in-ggplot2-for-long-legend-titles

Usage

1
align_legend(p, hjust = 0.5)

Arguments

p

ggplot object

hjust

Amount to adjust alignment.


LiamDBailey/baileyetal2021 documentation built on Feb. 10, 2022, 12:34 a.m.