get_popdata: Grabs the required population data from the US Census...

Description Usage Arguments Value Examples

Description

Modified from the source: rpubs.com/walkerke/pyramids_ggplot2

Usage

1
get_popdata(country, year)

Arguments

country

a FIPS 10-4 country code for the country you want

year

The year you want to visualize.

Value

a data.frame

Examples

1
2
3
#KS2016=get_popdata("KS",2016)
#ggBidirectionalBar(data=KS2016,left="Male",right="Female",label="Age")
#ggBidirectionalBar(data=KS2016,left="Male",right="Female",label="Age",interactive=TRUE)

cardiomoon/moonBook2 documentation built on May 13, 2019, 12:40 p.m.