View source: R/coord_automap.R
coord_automap | R Documentation |
This allows a default inset configuration to be provided to avoid having to repeat it for each layer. Any layer that is inset-aware can use this as the default configuration if none is specifically provided to that layer. This coord also expands the axis limits to include the inset area.
coord_automap(feature_type = NA, inset = NULL, ...)
feature_type |
Type of map feature. See |
inset |
Inset configuration; see |
... |
Arguments passed to |
A ggplot coordinate
library(ggplot2)
library(cartographer)
ggplot(nc_type_example_2, aes(location = county)) +
geom_choropleth(aes(colour = type), size = 0.5) +
geom_sf_label_inset(aes(label = county), stat = "automap_coords", size = 3) +
coord_automap(feature_type = "sf.nc")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.