Get Census Tract Information and Map by State
Source:R/get_census_tract_info_and_map_by_state.R
get_census_tract_info_and_map_by_state.Rd
This function retrieves census tract information for a specified state and maps it using H3 hexagons at a given resolution.
Value
A list containing:
- sf_data
The spatial data (sf object) for the census tracts.
- p1
A ggplot object showing the census tracts with H3 hexagons.
- centroid_plot
A ggplot object showing the centroids of the census tracts.
- centroid_hex_assignments
A data frame mapping centroids to H3 hexagons.
- tract_centroids_with_hexongs
A combined sf object of centroids and their corresponding H3 hexagons.
- shape_centroids
The centroids of the census tracts as an sf object.