plot.ageHeaping {nipnTK}R Documentation

plot() helper functions for ageHeaping() functions

Description

plot() helper functions for ageHeaping() functions

Usage

## S3 method for class 'ageHeaping'
plot(x, main = "", xlab = "Remainder", ylab = "Frequency", cex = 0.75, ...)

Arguments

x

Object resulting from applying the ageHeaping() function

main

Title of plot

xlab

x-axis label; default is Remainder

ylab

y-axis label; default is Frequency

cex

Character expansion (numeric); default is 0.75

...

Additional plot() graphical parameters

Value

Barplot of frequency of remainders of age when divided by a specified divisor

Examples

# Plot age heaping test results on SMART survey data in Kabul, Afghanistan
# (dp.ex02) using a divisor of 12
svy <- dp.ex02
ah12 <- ageHeaping(svy$age)
plot(ah12)


[Package nipnTK version 0.2.0 Index]