addTwins | R Documentation |
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"
)
plotObject |
A ggplot object to which twin segments will be added. |
connections |
A data frame containing twin connection coordinates. |
config |
A list of configuration options for customizing the plot. See getDefaultPlotConfig for details. The list can include:
|
plot_connections |
A data frame containing the coordinates for twin segments. |
personID |
Character string specifying the column name for individual IDs. Defaults to "personID". |
A ggplot object with twin segments added.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.