library(ggplot2)
data(oregon)
ggplot(oregon, aes(group=county)) +
geom_district() +
geom_district_text() +
scale_fill_randmcnally() +
theme_map()
ggplot(oregon, aes(group=cd_2020)) +
geom_district(lwd=0.9, color="#442222") +
geom_district(aes(group=county), lwd=0.4, lty="dashed", fill=NA) +
geom_district_text(aes(group=county, label=toupper(county)),
size=2.2, check_overlap=TRUE) +
geom_district_text(adjust=2) +
scale_fill_penn82() +
theme_map()
Run the code above in your browser using DataLab