Adds a logo to a graph object and saves the result as a .png in the specified location.

add_logo(
 plot = ggplot2::last_plot(),
 logo = c("share", "microsoft", "benefit", "pmi"),
 caption = "",
 filename = "logo_plot.png", 
 path = "viz/"
)

Arguments

plot

A graph object. Default is most recent plot.

logo

Character string indicating the logo to add. Options are: "microsoft", "share".

caption

Character string providing the plot caption. By default, a blank caption will be added.

filename

Character string with the name to create on disk (end with .png).

path

Path to save plot to (is combined with filename). By default, a folder called 'viz' in the R project directory.