The pedigree provided must have the following columns: sex
and
age
. This needs to be augmented to allow pedigrees structures that
are provided by the nprcgenekeepr package.
Examples
library(nprcgenekeepr)
data(qcPed)
getPyramidPlot(qcPed)
#> 15 15
#> [1] 5.1 4.1 4.1 2.1