Visualizing Pedigrees with 'ggplot2' and 'plotly'
Add Focal Fill Column to Pedigree Data
Align pedigree with hints for plotting This function aligns a pedigree...
Align pedigree with additional relations
build Config
Build spouse segments
Calculate connections for a pedigree dataset
Calculate coordinates for plotting individuals in a pedigree
Find the closest duplicate appearance based on coordinates
Compute distance between two points
Count offspring of each individual
Count siblings of each individual
Get fill column for ggPedigree
Add annotates to ggplot Pedigree Plot
Add Labels to ggplot Pedigree Plot
Add Nodes to ggplot Pedigree Plot
Add Overlay to ggplot Pedigree Plot
Add Scales to ggplot Pedigree Plot
Add Self Segments to ggplot Pedigree Plot
Add Twins to ggplot Pedigree Plot
Adjust spacing in ggPedigree coordinate columns
Compute point along a curved segment (quadratic Bézier)
Generate a symmetric key for two IDs
Pick First Matching Rule
Prepare data for ggPhenotypeByDegree This function prepares the data f...
Restore user-specified column names in a connections data frame
Format tooltip text
Generate a spouselist matrix
Shared Default Plotting Configuration
Compute midpoints across grouped coordinates
Get coordinate positions of relatives for each individual
ggpedigree: Visualizing Pedigrees with 'ggplot2' and 'plotly'
Core Function for ggPedigree
Plot a custom pedigree diagram
Interactive pedigree plot (Plotly wrapper around ggPedigree)
Core plotting function for ggPhenotypeByDegree This function generates...
Plot correlation of genetic relatedness by phenotype
Core Function for ggRelatednessMatrix
Plot a relatedness matrix as a heatmap (ggpedigree style)
Align a pedigree for plotting
Align pedigree - Process a single subject and their spouses
Align pedigree - Process a set of siblings
Merge two aligned pedigree structures
Compute optimal horizontal spacing for pedigree alignment
Automatically generate alignment hints for pedigree plotting
Calculate the bit size of a pedigree
Check kinship2 hints for consistency
Find all duplicated IDs on a level, and return
Calculate the depth (generation level) of subjects in a pedigree
plotPedigree A wrapped function to plot simulated pedigree from functi...
Shift a subject and his twins left or right among siblings used in aut...
Optimize Pedigree Plot
Optimize Plotly Pedigree Plot
Optimize Static Pedigree Plot
Create a pedigree or pedigreeList object
Prepare Pedigree Data
Process duplicate appearances of individuals in a pedigree layout
Recode Missing IDs in Pedigree Data
Relink IDs to closest duplicate appearance based on coordinates
Process Pedigree Data
Provides plotting functions for visualizing pedigrees and family trees. The package complements a behavior genetics package 'BGmisc' [Garrison et al. (2024) <doi:10.21105/joss.06203>] by rendering pedigrees using the 'ggplot2' framework. Features include support for duplicated individuals, complex mating structures, integration with simulated pedigrees, and layout customization. Due to the impending deprecation of kinship2, version 1.0 incorporates the layout helper functions from kinship2. The pedigree alignment algorithms are adapted from 'kinship2' [Sinnwell et al. (2014) <doi:10.1159/000363105>]. We gratefully acknowledge the original authors: Jason Sinnwell, Terry Therneau, Daniel Schaid, and Elizabeth Atkinson for their foundational work.
Useful links