View on GitHub

Pyramid

draws populations pyramid, wrapper to barplot()

Download this project as a .zip file Download this project as a tar.gz file

Pyramid

Pyramid() draws a population pyramid. Tons of optional arguments. Other related functions may be added. Soon to undergo overhaul.

Other supplementary plotting functions, or functions related to age structure are also included. For instance, MyersI(), measures the degree of apparent age-heaping in a population. PyramidOutline() adds the outline of a Pyramid to a plot (no center line), and aggN() aggregates a vector of single-age data to N-year age-groups.

Installation

To download and install the development version of Pyramid:

Download the zip ball or tar ball, decompress and run R CMD INSTALL on it in the terminal command line, or use the devtools package to install the development version:

# install.packages("devtools")
library(devtools)
install_github("Pyramid","timriffe",subdir="Pyramid")

Note: Windows users need Rtools and devtools to install this way.

Note: Mac users might be required to install the appropriate version XTools from the Apple Developer site in order to install the development version. You may need to register as an Apple developer. An older version of XTools may also be required.

Help

All functions are documented in the standard way, which means that once you load the package using library(Pyramid) you can just type for example ?Pyramid to see the help file. html help files are available on this site under help

To report a bug

Just go to the main repository page and click on the Issues button on the right side. That's a convenient way to track bugs. Otherwise, just email the maintainer. Feature requests can also be made to the maintainer. Motivated individuals are also free to offer assistance by collaborating via the git version control system and github.