Hi Matt,
Thanks for sending through the subset of your dataset, that made it much easier to dig into the issue.
The problem turned out to be related to using numeric values as population names. I’ve now fixed this bug, and the fix is available in the development version of dartR.base.
Below are the steps to install the updated version and rerun the analysis. Please let me know if anything still looks odd or if you run into any issues.
PS we are organising a dartR workshop next March at Kioloa (see link below) in case you would be interested. It would be also great if you could share the news with people that might be interested.
https://cba.anu.edu.au/news-events/events/dartrverseCheers,
Luis
# 1. Clean your environment
# Menu > Session > Clean Workspace
# 2. Restart your R session
# Menu > Session > Restart R
# 3. Install the development version of dartR.base
devtools::install_github("green-striped-gecko/dartR.base@dev")
library(dartRverse)
impute <- readRDS("test.rds")
col2 <- c(
"#6ccafc", "#ff7f00", "#6a3d9a", "#66d932", "#33a02c",
"#fb9a99", "#e31a1c", "#00d2e0", "#cf70ff", "#1f78b4", "maroon"
)
diversity <- gl.report.diversity(impute, plot.colors.pop = col2)