View source: R/plotPointWithInset.R
plot_point_with_inset | R Documentation |
Plot a point on a map with an inset in the top right corner showing an overview of a larger area.
plot_point_with_inset(long, lat, pointColour, bigMap = NULL,
overviewMap = NULL, overviewExtent = c(-139, 48, -114, 60),
opts = NULL)
long |
Longitude (dd) of point |
lat |
Latitude (dd) of point |
pointColour |
The colour of the point |
bigMap |
ggmap of the zoomed in area that will comprise the large map |
overviewMap |
ggMap of large area that will be in the inset. If not provided, will be generated using overviewExtent |
overviewExtent |
The extent (left, botton, right, top) of the large area that will be in the inset. Default is British Columbia |
opts |
Additional options to pass to ggplot2 |
A ggmap object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.