View source: R/geom_boundaries.R
geom_boundaries | R Documentation |
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.
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
)
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. |
A ggplot layer.
library(ggplot2)
ggplot() +
geom_boundaries(feature_type = "sf.nc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.