Skip to content

Instantly share code, notes, and snippets.

@EmZhu
Last active August 16, 2016 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EmZhu/db69c8914204cd83ac6f8e76bbd32d49 to your computer and use it in GitHub Desktop.
Save EmZhu/db69c8914204cd83ac6f8e76bbd32d49 to your computer and use it in GitHub Desktop.
#================================plot against population
population = read.csv('population.csv', header=T)
head(population)
population = population %>% filter(Year>=start_year & Year<=end_year)
ggplot(population, aes(Year, Change/1e6)) +
geom_line(color='blue') +
ylab('Population (in millions)') +
ggtitle('U.S. population')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment