library(sf)
library(tigris)
library(ggplot2)
ggplot(states()) +
geom_sf(aes(fill = ALAND)) +
coord_sf(xlim = c(-125, -66), ylim = c(25, 49), expand = FALSE) +
labs(title = "US States by Land Area", fill = "Land Area")
STAT 220
sf
(Simple Features)
tidyverse
ecosystem, supporting complex spatial operations and integration with ggplot2
for advanced visualizations.tigris
sf
objects, ideal for socio-economic and demographic studies.rnaturalearth
leaflet
and ggplot2
for both interactive and static map creation.