This R notebook analyzes Population of Bronx county in New York. It uses U.S. Census data to provide insights and visualizations.
For reproducing the output, please check the code.
# Initialize libraries
library(tidycensus)
library(tidyverse)
# Retrieve the data
key <- "5c392416d1a83b252ae92ec8a3c4e9105f527a2f"
bronx_pop <- get_acs(state="NY", county = "Bronx", geography = "tract", variables = "B01003_001", geometry = TRUE, year = 2015)
# Plot the data
bronx_pop %>%
ggplot(aes(fill = estimate)) +
geom_sf(color = NA) +
coord_sf(crs = 6318) +
scale_fill_viridis_c(option = "plasma") +
ggtitle("Total Population of Bronx County in New York")
This visualization shows the total population of the Bronx, New York, at the census tract level for the year 2015. Each census tract is represented as a colored polygon, with the color indicating the population density or count. It provides a spatial perspective on the population distribution within the Bronx.