annotate_image | R Documentation |
Draw bitmap image as ggplot2 annotation
annotate_image(image, xlim = NULL, ylim = NULL, settings = NULL)
image |
rasterGrob object or filename (png) |
xlim |
x-coordinates |
ylim |
y-coordinates |
settings |
list with named parameters, from which default values for xlim and ylim are taken |
ggplot2 layer (as in 'ggplot2::annotation_custom')
image <- system.file("img", "Rlogo.png", package="png") s <- new_settings() plot_position(position8c, s, background_annotation = annotate_image(image, settings = s))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.