Midwest Demographic Analysis

The following CSV file (midwest.csv) contains demographic data of the Midwestern United States. We will start by looking at population density:

0 items
library(ggplot2)
midwest <- read.csv(
midwest.csv
)
ggplot(midwest, aes(x=area, y=poptotal)) +
	geom_point(aes(col=state, size=popdensity)) +
	geom_smooth(method="loess", se=F) +
	xlim(c(0, 0.1)) + ylim(c(0, 500000))
4.4s
R
Runtimes (1)