centroid_labels {usmapdata} | R Documentation |
Retrieve centroid labels
Description
Retrieve centroid labels
Usage
centroid_labels(
regions = c("states", "state", "counties", "county"),
as_sf = TRUE,
data_year = NULL
)
Arguments
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 |
Value
An sf
data frame of state or county centroid labels and positions
relative to the coordinates returned by the us_map
function.