Skip to content

Instantly share code, notes, and snippets.

/population_density
Created Aug 4, 2016

Embed
What would you like to do?
Mean population density
stden <- crime_nys %>%
select(Year, Density.sq.mi) %>%
group_by(Year) %>%
summarise(Density.sq.mi=mean(Density.sq.mi))
p9 <- ggplot(stden, aes(x=Year, y=Density.sq.mi)) +
geom_line() +
ggtitle('Population Density in New York State (minus NYC)') +
xlab('Year') +
ylab('Population Density (ppl/sq.mi)') +
theme_minimal()
p9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.