Plot Age Priors
PlotAgePrior.Rd
Visualise the age-difference based prior probability ratios as a heatmap.
Arguments
- AP
matrix with age priors (\(P(A|R)/P(A)\)) with age differences in rows and relationships in columns; by default M: maternal parent (mother), P: paternal parent (father), FS: full siblings, MS: maternal siblings (full + half), PS: paternal siblings.
- legend
if
TRUE
, a new plotting window is started andlayout
is used to plot a legend next to the main plot. Set toFALSE
if you want to add it as panel to an existing plot (e.g. withpar(mfcol=c(2,2))
).