centroid_labels | R Documentation |
Retrieve centroid labels
centroid_labels(
regions = c("states", "state", "counties", "county"),
as_sf = TRUE,
data_year = NULL
)
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. |
data_year |
The year for which to obtain map data.
If the value is |
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.