add_plot_header | R Documentation |
Add a logo to a plot
add_plot_header(plot = ggplot2::last_plot(), header, ratio = 10)
plot |
A |
header |
The header to add. |
ratio |
The ratio in % between the header and the plot. |
A ggplot2
plot object.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.