add_label_unit: Add label unit

View source: R/add_logo.r

add_label_unitR Documentation

Add label unit

Description

Ajoute un label pour les unités sur le plus grand des labels y

Usage

add_label_unit(plot, ylabel = "")

Arguments

plot

un graphique ggplot

ylabel

string, un label

Value

un graphique ggplot

Examples

## Not run: 
library(ggplot2)
plot <- ggplot(mtcars) +
        geom_point(aes(x=mpg, y=hp, size=cyl, col=gear)) +
        theme_ofce(base_family="Nunito")
# plot |> add_label_unit("horse power")

## End(Not run)

OFCE/ofce documentation built on June 2, 2025, 12:20 a.m.