Description Usage Arguments Examples
This is a special version of ggplot2::annotation_raster for use
with ggmap. (It simply removes the requirement for cartesian
coordinates.) The only difference between inset_raster
and inset_ggmap
is their arguments. inset_ggmap
is
simply a wrapper of inset_raster
with xmin
, ...,
ymax
arguments equal to the map's bounding box.
1 2 3 | inset_raster(raster, xmin, xmax, ymin, ymax, interpolate = TRUE)
inset_ggmap(ggmap)
|
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 |
interpolate |
interpolate the raster? (i.e. antialiasing) |
ggmap |
a ggmap object, see |
1 | # see ?bb2bbox
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.