ggpedigree
provides modern tools for visualizing pedigree structures using both ‘ggplot2’ and ‘plotly’. It is designed to work seamlessly with the BGmisc
package for simulated or empirical pedigree data, and extends the plotting capabilities of the base-graphics functions in kinship2
.
The package supports:
Static, publication-ready pedigree plots using the
ggplot2
frameworkInteractive pedigree visualizations using
plotly
Layout customization, complex mating structures, and duplicated individuals
ggpedigree
is useful in behavior genetics, kinship analysis, and any research involving complex pedigree data.
Installation
You can install the released version of ggpedigree from CRAN with:
install.packages("ggpedigree")
To install the development version of ggpedigree
from GitHub use:
# install.packages("devtools")
devtools::install_github("R-Computing-Lab/ggpedigree")
Citation
If you use ggpedigree in your research or wish to refer to it, please cite the following:
Garrison S (05.20.2025). ggpedigree: Visualizing Pedigrees with ‘ggplot2’ and ‘plotly’. R package version 0.4.0, https://github.com/R-Computing-Lab/ggpedigree/.
A BibTeX entry for LaTeX users is
Contributing
Contributions to the ggpedigree project are welcome. For guidelines on how to contribute, please refer to the Contributing Guidelines. Issues and pull requests should be submitted on the GitHub repository. For support, please use the GitHub issues page.
Branching and Versioning System
The development of ggpedigree follows a GitFlow branching strategy:
- Feature Branches: All major changes and new features should be developed on separate branches created from the dev branch. Name these branches according to the feature or change they are meant to address.
-
Development Branch: Our approach includes two development branches, each serving distinct roles:
-
dev
: This branch is the final integration stage before changes are merged into themain
branch. It is considered stable, and only well-tested features and updates that are ready for the next release cycle are merged here.
-
-
Main Branch (
main
): The main branch mirrors the stable state of the project as seen on CRAN. Only fully tested and approved changes from the dev_main branch are merged into main to prepare for a new release.
License
ggpedigree is licensed under the GNU General Public License v3.0. For more details, see the LICENSE.md file.