centroid_labels {usmapdata}R Documentation

Retrieve centroid labels

Description

Retrieve centroid labels

Usage

centroid_labels(regions = c("states", "counties"), as_sf = TRUE)

Arguments

regions

The region breakdown for the map, can be one of ("states", "counties", as specified by the internal file names. The default is "states".

as_sf

Defunct, this parameter no longer has any effect and will be removed in the future.

Value

An sf data frame of state or county centroid labels and positions relative to the coordinates returned by the us_map function.


[Package usmapdata version 0.3.0 Index]