R/logo.R
add_plot_header.Rd
Add a logo to a plot
add_plot_header(plot = ggplot2::last_plot(), header, ratio = 10)
A ggplot2 plot object.
ggplot2
The header to add.
The ratio in % between the header and the plot.
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"))