ggpedigree1.1.0.3 package

Visualizing Pedigrees with 'ggplot2' and 'plotly'

addFocalFillColumn

Add Focal Fill Column to Pedigree Data

alignPedigreeWithHints

Align pedigree with hints for plotting This function aligns a pedigree...

alignPedigreeWithRelations

Align pedigree with additional relations

buildPlotConfig

build Config

buildSpouseSegments

Build spouse segments

calculateConnections

Calculate connections for a pedigree dataset

calculateCoordinates

Calculate coordinates for plotting individuals in a pedigree

closest_dup

Find the closest duplicate appearance based on coordinates

computeDistance

Compute distance between two points

countOffspring

Count offspring of each individual

countSiblings

Count siblings of each individual

createFillColumn

Get fill column for ggPedigree

dot-addAnnotate

Add annotates to ggplot Pedigree Plot

dot-addLabels

Add Labels to ggplot Pedigree Plot

dot-addNodes

Add Nodes to ggplot Pedigree Plot

dot-addOverlay

Add Overlay to ggplot Pedigree Plot

dot-addScales

Add Scales to ggplot Pedigree Plot

dot-addSelfSegment

Add Self Segments to ggplot Pedigree Plot

dot-addTwins

Add Twins to ggplot Pedigree Plot

dot-adjustSpacing

Adjust spacing in ggPedigree coordinate columns

dot-computeCurvedMidpoint

Compute point along a curved segment (quadratic Bézier)

dot-makeSymmetricKey

Generate a symmetric key for two IDs

dot-pick_first

Pick First Matching Rule

dot-preparePhenotypeByDegreeData

Prepare data for ggPhenotypeByDegree This function prepares the data f...

dot-restoreNames

Restore user-specified column names in a connections data frame

formatTooltip

Format tooltip text

generateSpouseList

Generate a spouselist matrix

getDefaultPlotConfig

Shared Default Plotting Configuration

getMidpoints

Compute midpoints across grouped coordinates

getRelativeCoordinates

Get coordinate positions of relatives for each individual

ggpedigree-package

ggpedigree: Visualizing Pedigrees with 'ggplot2' and 'plotly'

ggPedigree.core

Core Function for ggPedigree

ggPedigree

Plot a custom pedigree diagram

ggPedigreeInteractive

Interactive pedigree plot (Plotly wrapper around ggPedigree)

ggPhenotypeByDegree.core

Core plotting function for ggPhenotypeByDegree This function generates...

ggPhenotypeByDegree

Plot correlation of genetic relatedness by phenotype

ggRelatednessMatrix.core

Core Function for ggRelatednessMatrix

ggRelatednessMatrix

Plot a relatedness matrix as a heatmap (ggpedigree style)

kinship2_align.pedigree

Align a pedigree for plotting

kinship2_alignped1

Align pedigree - Process a single subject and their spouses

kinship2_alignped2

Align pedigree - Process a set of siblings

kinship2_alignped3

Merge two aligned pedigree structures

kinship2_alignped4

Compute optimal horizontal spacing for pedigree alignment

kinship2_autohint

Automatically generate alignment hints for pedigree plotting

kinship2_bitSize

Calculate the bit size of a pedigree

kinship2_check.hint

Check kinship2 hints for consistency

kinship2_duporder

Find all duplicated IDs on a level, and return

kinship2_kindepth

Calculate the depth (generation level) of subjects in a pedigree

kinship2_plotPedigree

plotPedigree A wrapped function to plot simulated pedigree from functi...

kinship2_shift

Shift a subject and his twins left or right among siblings used in aut...

optimizePedigree

Optimize Pedigree Plot

optimizePlotlyPedigree

Optimize Plotly Pedigree Plot

optimizeStaticPedigree

Optimize Static Pedigree Plot

pedigree

Create a pedigree or pedigreeList object

preparePedigreeData

Prepare Pedigree Data

processExtras

Process duplicate appearances of individuals in a pedigree layout

recodeMissingIDs

Recode Missing IDs in Pedigree Data

relink

Relink IDs to closest duplicate appearance based on coordinates

transformPed

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.

  • Maintainer: S. Mason Garrison
  • License: GPL (>= 3)
  • Last published: 2026-01-11