library(ggplot2)
data(oregon)
ggplot(oregon, aes(group=county)) +
geom_district() +
scale_fill_penn82() +
theme_map()
ggplot(oregon, aes(group=county, fill=pop)) +
geom_district() +
theme_map()
ggplot(oregon, aes(group=cd_2020, fill=ndv, denom=ndv+nrv)) +
geom_district() +
scale_fill_party_c(limits=c(0.4, 0.6)) +
theme_map()
ggplot(oregon, aes(group=county)) +
geom_district() +
geom_district(buffer=-5000, fill="#ffffffcc", color=NA) +
scale_fill_natgeo() +
theme_map()
Run the code above in your browser using DataLab