plot_point_with_inset: Plot a point on a map with an overview inset

View source: R/plotPointWithInset.R

plot_point_with_insetR Documentation

Plot a point on a map with an overview inset

Description

Plot a point on a map with an inset in the top right corner showing an overview of a larger area.

Usage

plot_point_with_inset(long, lat, pointColour, bigMap = NULL,
  overviewMap = NULL, overviewExtent = c(-139, 48, -114, 60),
  opts = NULL)

Arguments

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

Value

A ggmap object.


bcgov/bcgroundwater documentation built on March 18, 2024, 5:43 a.m.