Description Usage Arguments Value Examples
Modified from the source: rpubs.com/walkerke/pyramids_ggplot2
1 | get_popdata(country, year)
|
country |
a FIPS 10-4 country code for the country you want |
year |
The year you want to visualize. |
a data.frame
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.