Learn R Programming

ggmap (version 2.5.2)

inset_raster: Add a raster annotation to a map

Description

This is a special version of ggplot2::annotation_raster for use with ggmap

Usage

inset_raster(raster, xmin, xmax, ymin, ymax)

Arguments

raster
raster object to display
xmin,xmax
x location (in data coordinates) giving horizontal location of raster
ymin,ymax
y location (in data coordinates) giving vertical location of raster

Details

Most useful for adding bitmap images