Adds twin connections to the ggplot pedigree plot. This function modifies the `plotObject` by adding segments to represent twin relationships.
.addTwins(
plotObject,
connections,
config,
plot_connections,
personID = "personID"
)addTwins(
plotObject,
connections,
config,
plot_connections,
personID = "personID"
)
A ggplot object with twin segments added.
A ggplot object to which twin segments will be added.
A data frame containing twin connection coordinates.
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.
A data frame containing the coordinates for twin segments.
Character string specifying the column name for individual IDs. Defaults to "personID".