Add a logo to a plot

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"))