ggpedigree
This is companion package to BGmisc for ggplot2
Science Score: 36.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: joss.theoj.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (19.5%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
This is companion package to BGmisc for ggplot2
Basic Info
- Host: GitHub
- Owner: R-Computing-Lab
- License: gpl-3.0
- Language: HTML
- Default Branch: main
- Homepage: https://r-computing-lab.github.io/ggpedigree/
- Size: 35.6 MB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 10
- Releases: 5
Created about 2 years ago
· Last pushed 10 months ago
Metadata Files
Readme
Changelog
Contributing
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
options(citation.bibtex.max = 0)
```
# ggpedigree
[](https://www.repostatus.org/#active)
[](https://CRAN.R-project.org/package=ggpedigree)
[](https://cran.r-project.org/web/checks/check_results_ggpedigree.html)
[](https://cranlogs.r-pkg.org/badges/grand-total/ggpedigree)
[](https://app.codecov.io/gh/R-Computing-Lab/ggpedigree)
[](https://github.com/R-Computing-Lab/ggpedigree/actions/workflows/R-CMD-check.yaml)
[](https://github.com/R-Computing-Lab/ggpedigree/actions/workflows/R-CMD-devcheck.yaml)
[](https://github.com/R-Computing-Lab/ggpedigree/actions/workflows/pkgdown.yaml)
[](https://www.gnu.org/licenses/gpl-3.0.html)
[](https://joss.theoj.org/papers/e5116b83b03e2740960d1153c45f9480)
`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` framework
- Interactive 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](https://cran.r-project.org/) with:
```r
install.packages("ggpedigree")
```
To install the development version of `ggpedigree` from [GitHub](https://github.com/) use:
```r
# install.packages("devtools")
devtools::install_github("R-Computing-Lab/ggpedigree")
```
## Demonstration
```{r load-data, include=FALSE}
library(ggpedigree) # ggPedigree lives here
library(BGmisc) # helper utilities & example data
library(tidyverse)
# if you don't have the most recent version of BGmisc, you may need to install it first as a stop-gap I've added the data loading here
data("potter") # load example data from BGmisc
if (!"twinID" %in% names(potter)) {
# Add twinID and zygosity columns for demonstration purposes
potter <- potter %>%
mutate(
twinID = case_when(
name == "Fred Weasley" ~ 13,
name == "George Weasley" ~ 12,
TRUE ~ NA_real_
),
zygosity = case_when(
name == "Fred Weasley" ~ "mz",
name == "George Weasley" ~ "mz",
TRUE ~ NA_character_
)
)
}
```
Here is a basic example of how to use `ggpedigree` to visualize a pedigree structure. The `potter` dataset contains simulated pedigree data for the Weasley family from the Harry Potter series.
```{r basic-usage,out.width = "80%"}
ggPedigree(potter,
famID = "famID",
personID = "personID"
)
```
## Citation
If you use ggpedigree in your research or wish to refer to it, please cite the following:
```
citation(package = "ggpedigree")
```
```{r,comment='',results='asis',echo=FALSE}
print(citation(package = "ggpedigree"), style = "text", bibtex = FALSE)
```
A BibTeX entry for LaTeX users is
```{r,comment='',echo=FALSE}
toBibtex(citation(package = "ggpedigree"))
```
## Contributing
Contributions to the ggpedigree project are welcome. For guidelines on how to contribute, please refer to the [Contributing Guidelines](https://github.com/R-Computing-Lab/ggpedigree/blob/main/CONTRIBUTING.md). 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](https://tilburgsciencehub.com/topics/automation/version-control/advanced-git/git-branching-strategies/):
- **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**: The `dev` branch is the main development branch where all feature branches are merged. This branch contains the latest changes and is used for testing and development purposes.
- **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 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](https://github.com/R-Computing-Lab/ggpedigree/blob/main/LICENSE.md) file.
Owner
- Name: R Computing Lab
- Login: R-Computing-Lab
- Kind: organization
- Email: garrissm@wfu.edu
- Location: Wake Forest University
- Repositories: 12
- Profile: https://github.com/R-Computing-Lab
JOSS Publication
ggpedigree: Visualizing Pedigrees with 'ggplot2' and 'plotly'
Published
February 01, 2026
Volume 11, Issue 118, Page 9434
Tags
pedigrees family trees quantitative genetics behavior genetics visualization ggplot2 plotlyGitHub Events
Total
- Create event: 11
- Release event: 5
- Issues event: 19
- Watch event: 3
- Delete event: 9
- Issue comment event: 16
- Push event: 569
- Pull request review event: 52
- Pull request review comment event: 40
- Pull request event: 87
Last Year
- Create event: 11
- Release event: 5
- Issues event: 19
- Watch event: 3
- Delete event: 9
- Issue comment event: 16
- Push event: 569
- Pull request review event: 52
- Pull request review comment event: 40
- Pull request event: 87
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 12
- Total pull requests: 50
- Average time to close issues: 5 days
- Average time to close pull requests: 1 day
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 0.33
- Average comments per pull request: 0.18
- Merged pull requests: 40
- Bot issues: 0
- Bot pull requests: 2
Past Year
- Issues: 11
- Pull requests: 50
- Average time to close issues: 5 days
- Average time to close pull requests: 1 day
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.27
- Average comments per pull request: 0.18
- Merged pull requests: 40
- Bot issues: 0
- Bot pull requests: 2
Top Authors
Issue Authors
- smasongarrison (11)
- mhunter1 (1)
Pull Request Authors
- smasongarrison (48)
- imgbot[bot] (2)
Top Labels
Issue Labels
enhancement (3)
bug (1)
wontfix (1)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 258 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 4
- Total maintainers: 1
cran.r-project.org: ggpedigree
Visualizing Pedigrees with 'ggplot2' and 'plotly'
- Homepage: https://github.com/R-Computing-Lab/ggpedigree/
- Documentation: http://cran.r-project.org/web/packages/ggpedigree/ggpedigree.pdf
- License: GPL-3
-
Latest release: 0.8.0
published about 1 year ago
Rankings
Dependent packages count: 26.5%
Dependent repos count: 32.6%
Average: 48.6%
Downloads: 86.7%
Maintainers (1)
Last synced:
10 months ago
Dependencies
.github/workflows/Codecov.yaml
actions
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/R-CMD-dev_maincheck.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/R-CMD-devcheck.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 3.5.0 depends
- BGmisc * imports
- ggplot2 * imports
- EasyMx * suggests
- OpenMx * suggests
- knitr * suggests
- rmarkdown * suggests
- rticles * suggests
- testthat >= 3.0.0 suggests
