configure_inset {ggautomap} | R Documentation |
Configure transformations underpinning a map inset
Description
This specialises ggmapinset::configure_inset()
to allow the centre
to be specified as a location. The centroid of that location is used as the
inset's centre.
Usage
configure_inset(
centre = NULL,
scale = NULL,
translation = NULL,
radius = NULL,
units = "km",
feature_type = NA
)
Arguments
centre |
Coordinates of the inset centre. Can instead be the name of a
geographic feature if |
scale |
Zoom scale: values larger than one will make the circle bigger. |
translation |
Translate (shift) the inset. This can be an
|
radius |
Radius of the inset circle. |
units |
Base length unit (e.g. |
feature_type |
Type of map feature. See |
Value
An inset configuration object.
See Also
ggmapinset::configure_inset
Examples
cfg <- configure_inset(
centre = "Yancey",
feature_type = "sf.nc",
scale = 2,
translation = c(70, -180),
radius = 50,
units = "mi"
)