Skip to contents

Intended for use with inset_map function.

Usage

layer_show_context(
  data = NULL,
  fill = "gray70",
  color = "black",
  context = NULL,
  context_aes = list(fill = "white", color = "black", alpha = 1, ...),
  layer_between = NULL,
  crs = NULL,
  neatline = TRUE,
  ...
)

Arguments

data

sf object with location data

fill

Fill color for location data

color

Edge color for location data

context

sf or bbox object for context area or a geom layer

context_aes

list with aesthetic attributes for context area; must include fill and color; defaults to list(fill = "white", color = "black", ...)

layer_between

An optional ggplot2 layer to insert between the context layer and the location layer.

crs

coordinate reference system to return

neatline

If TRUE, add a neatline layer to the returned layer

...

Additional parameters passed to overedge::layer_location_data for location

See also

Other layer: layer_show_location()