This function recodes missing IDs in the pedigree data frame to NA. It checks for specified missing codes (both numeric and character) in their respective columns.
recodeMissingIDs(
ped,
momID = "momID",
dadID = "dadID",
personID = "personID",
famID = "famID",
matID = "matID",
patID = "patID",
missing_code_numeric = 0,
missing_code_character = c("0", "NA", "na", ""),
config = list()
)A data frame with missing IDs recoded to NA.
A data frame containing the pedigree data. Needs personID, momID, dadID, and sex columns.
Character string specifying the column name for mother IDs. Defaults to "momID".
Character string specifying the column name for father IDs. Defaults to "dadID".
Character string specifying the column name for individual IDs. Defaults to "personID".
Character string specifying the column name for family IDs. Defaults to "famID".
Character string specifying the column name for maternal lines Defaults to "matID".
Character string specifying the column name for paternal lines Defaults to "patID".
Numeric code representing missing IDs (default is 0).
Character vector representing missing IDs (default is c("0", "NA", "na", "")).
A list of configuration options for customizing the plot. See getDefaultPlotConfig for details of each option. The list can include:
Integer or string. Value identifying males in the sex column. (typically 0 or 1) Default: 1
Character. Line colors for respective connection types.
Character. Line colors for respective connection types.
Numeric. Controls text size, point size, and line thickness.
Numeric. Vertical spacing multiplier between generations. Default: 1.
Integers. Shape codes for plotting each group.
Character vector of labels for the sex variable. (default: c("Female", "Male", "Unknown"))
Values indicating unaffected/affected status.
Logical. If TRUE, uses color to differentiate sex.
Maximum number of overlaps allowed in repelled labels.
Color used for label connector lines.