Spatial Visualisation of Admixture on a Projected Map
Overview
Visualise admixture as pie charts on a projected map, admixture as traditional structure barplots or facet barplots, and scatter plots from genotype principal components analysis. A 'shiny' app allows users to create admixture maps interactively. Jenkins TL (2024) doi:10.1111/1755-0998.13943.
- **Feature**. The
pie_sizeargument now accepts a single value or a vector of values the same length as the number of sites. This allows users to plot pie of different sizes for different sites. - **Issue #28**. Changing the order of items in the legend. Fixed an issue when there are 10 or more clusters named cluster1, cluster2, ..., cluster10, clusterN. The main change is in the
func_process_input_data.Rscript, whereby the renaming of cluster columns is now cluster01, cluster02, ..., instead of cluster1, cluster2, ..., to make sure the order is the same as the input. - **Shiny app**. Package dependencies for the Shiny app only are now on the Suggest list of dependencies rather than the Imports list. When
launch_mapmixture()is executed, the function will check the dependencies are installed or ask the user to install them. - **Structure plot**. A permanent change in the default plotting of individuals on the structure plot. Previously, the individual column was sorted alphabetically, but users have indicated it is more ideal to preserve the original order of individuals for each site in the admixture data file. This is now the default behaviour for
structure_plot().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 13 (9 internal)
- Examples that run
- 100%13 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 6
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/tom-jenkins/mapmixture on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Dependencies
Code & Tests
Datasets
People & History
Package metadata
- First published
- 2024-04-17
- Total releases
- 5 / 2 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 4.2
- Download size
- 3.8 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("mapmixture")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.1111/1755-0998.13943.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.