geom_boundaries {ggautomap} | R Documentation |
Map feature boundaries
Description
Retrieves the full map data from {cartographer}
and plots the boundaries.
As well as the chosen feature boundaries, the outline of the map is
drawn separately if one has been registered with the map data, with the
possibility to override its aesthetics.
Usage
geom_boundaries(
mapping = ggplot2::aes(),
data = NULL,
stat = "sf_inset",
position = "identity",
...,
feature_type = NULL,
inset = NA,
map_base = "normal",
map_inset = "auto",
na.rm = FALSE,
outline.aes = list(colour = "#666666"),
show.legend = NA,
inherit.aes = FALSE
)
Arguments
mapping , stat , position , na.rm , show.legend , inherit.aes , ... |
See |
data |
Ignored (this geometry always uses the registered geographic data). |
feature_type |
Type of map feature. See |
inset |
Inset configuration; see |
map_base |
Controls the layer with the base map. Possible values are
|
map_inset |
Controls the layer with the inset map. Possible values are
|
outline.aes |
A list to override the aesthetics for the outline of the map. This has no effect if the map wasn't registered with a separate outline. |
Value
A ggplot layer.
Examples
library(ggplot2)
ggplot() +
geom_boundaries(feature_type = "sf.nc")