add_plot_header: Add a logo to a plot

View source: R/logo.R

add_plot_headerR Documentation

Add a logo to a plot

Description

Add a logo to a plot

Usage

add_plot_header(plot = ggplot2::last_plot(), header, ratio = 10)

Arguments

plot

A ggplot2 plot object.

header

The header to add.

ratio

The ratio in % between the header and the plot.

Value

A ggplot2 plot object.

Examples

library(ggplot2)

p <- ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width)) +
    geom_point(aes(color = Species, shape = Species))

add_plot_header(p, gglogo("marianne"))

spyrales/gouvdown documentation built on Dec. 3, 2023, 3:25 a.m.