addFocalFillColumn | R Documentation |
Adds a 'focal_fill' column to the pedigree data based on configuration input. Supports additive, mitochondrial, and line-based modes. If 'focal_fill_column' is specified, it takes priority over inferred modes.
addFocalFillColumn(
ds_ped,
config,
focal_fill_column = NULL,
famID = "famID",
matID = "matID",
patID = "patID",
personID = "personID",
fill_group_family = c("famID", "family", "family lineages", "family lines",
"family line"),
fill_group_maternal = c("maternal", "matID", "maternal line", "maternal lineages",
"maternal lines"),
fill_group_paternal = c("paternal", "patID", "paternal line", "paternal lineages",
"paternal lines")
)
ds_ped |
A data frame already processed by 'transformPed()'. |
config |
A list of configuration options for customizing the plot. See getDefaultPlotConfig for details. The list can include:
|
focal_fill_column |
Character string specifying the column name for focal fill color. |
famID |
Character string specifying the column name for family IDs. Defaults to "famID". |
matID |
Character string specifying the column name for maternal lines Defaults to "matID". |
patID |
Character string specifying the column name for paternal lines Defaults to "patID". |
personID |
Character string specifying the column name for individual IDs. Defaults to "personID". |
fill_group_family |
Character vector specifying fill types for family lineage. |
fill_group_maternal |
Character vector specifying fill types for maternal lineage. |
fill_group_paternal |
Character vector specifying fill types for paternal lineage. |
A data frame with a 'focal_fill' column added if applicable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.