add_logo | R Documentation |
Add logo to plot, option to write into file
add_logo( orig_plot, logo_file, annotation_text, plot_file = "temp.png", plot_dpi = 320, plot_width = NA, plot_height = NA, logo_resize = "60x60", image_extent = "700x60", image_gravity = "west", annotation_colour = "black", google_font = "Roboto", annotation_location = "+61+0", annotation_size = 35, x_pos_round = 0.01, rewrite_file = TRUE )
orig_plot |
existing chart |
logo_file |
logo to be added (image file) |
annotation_text |
text to be added next to the text (e.g. twitter handle) |
plot_file |
file where to save the plot |
plot_dpi |
plot file resolution |
plot_width |
plot file width |
plot_height |
plot file height |
logo_resize |
size of the logo when added (magick parameter) |
image_extent |
extent addition (magick parameter) |
image_gravity |
image gravity alignment (magick parameter) |
annotation_colour |
colour of the annotation text |
google_font |
font of the text, from Google fonts |
annotation_location |
relative location of text (from logo, magick parameter) |
annotation_size |
relative size of annotation (from logo, magick parameter) |
x_pos_round |
relative position rounding (magick parameter) |
rewrite_file |
whether to rewrite the file with finished plot |
raster object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.