centroid_labels | R Documentation |
Retrieve centroid labels
centroid_labels(regions = c("states", "counties"), as_sf = TRUE)
regions |
The region breakdown for the map, can be one of
( |
as_sf |
Defunct, this parameter no longer has any effect and will be removed in the future. |
An sf
data frame of state or county centroid labels and positions
relative to the coordinates returned by the us_map
function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.