Draw bitmap image as ggplot2 annotation
annotate_image.Rd
Draw bitmap image as ggplot2 annotation
Arguments
- 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
Examples
image <- system.file("img", "Rlogo.png", package="png")
s <- new_settings()
plot_position(position8c, s,
background_annotation = annotate_image(image, settings = s))