- January 8th, 2025
-Updated documentation to ensure other packages are cited correctly.
- August 5th, 2025
- The function can now handle phased data.
- The functions
writeandprefixarguments have been updated to function properly.
- July 2nd, 2025
- Functions can now detect whether "|" or "" separate genotypes. This was causing functions to throw NAs.
- Minor bug was fixed for Jost's D calculation. A parentheses was removed in the calculation of the
D.barobject.
- Code has been simplified, individual and population information is now coerced to character before visualization.
- It is now an error if the individual names in the population data do not match the names in the individual data.
- Plots are automatically sorted by cluster so that individuals and populations are plotted with others in the cluster, if there is no specified order.
- Users can specify the individual and population order using the
ind.orderandpop.orderarguments, respectively. - Users can specify the legend position using the
legend_posargument.
The following updates laregly apply for the Plot_coordinates, Piechart_map, Point_map, and Network_map functions. We note where any updates are function specific.
- The maps are now built using the R package geodata to avoid the mapping NULL layer error.
- Users can now include administrative borders like states using the
country_codeargument. Country codes must match those used in geodata. - Users can color points by group using the
groupargument andgroup_colargument to specify colors for each group (only forPlot_coordinates). - Users can specify the legend position using the
legend_posargument. - Users can add a scale bar or north arrow to plots using the
scale_barandnorth_arrowarguments. Users can also modify the position and style of the north arrow usingnorth_arrow_positionandnorth_arrow_stylearguments, respectively. - Users can add a shapefile to the map with the
shapefileargument. Users can also control where the shapefile is placed usingshape_file_position, the fill color (shapefile_col), and the outline color (shapefile_outline_col). Shapefiles can be character strings or spatVector objects. - Users can add a raster (discrete or continuous) and control it's placement in a similar fashion to shapefiles, with the
raster,raster_col, andraster_plot_positionarguments. Custom breaks can be set withraster_breaksand users can indicate if rasters are discrete usingdiscrete_raster. Note that sometimesterrainterprets continuous rasters as discrete, and users should use thediscrete_rasterargument to accommodate this. Rasters can be characters or spatRaster objects. - Rasters cannot be added to the `Piechart_map output because it would require additional dependencies to accomodate two fills on the same ggplot2 object. Please email Keaka Farleigh (see package maintainer) if this poses a problem.
- Users can now specify color gradients of their preferred length (as long as they have that many colors).
- July 31st, 2024
- Code to calculate Fst in the
Differentiationfunction has been updated to be consistent with the rest of the function (using !is.na).
- July 26th, 2024
- The previously deprecated
Dif_stats,Dif_stats_map,Div_stats,Div_stats_map, andPlot_Ancestryfunctions have been removed.
- May 7th, 2024
- The
Longitude_colandLatitude_colarguments have been added to mapping functions;Plot_coordinates,Ancestry_Piemap,Piechart_map,Network_map, andPoint_map. Ind_orderandPop_orderarguments have been added toAncestry_Barchartto allow users to specify the order of individuals and populations in the barchart.- The
Plot_coordinatesfunction has been added to make sample maps from coordinates. - The
Point_mapfunction has replacedDiv_stats_mapand a statistic argument has been added to highlight the functions utility and allow users to name the map legend. Dif_stats_maphas been changed toNetwork_mapand a statistic argument has been added to highlight the functions utility and allow users to name the map legend.Plot_ancestryhas been split intoPiechart_MapandAncestry_barchartso that it is easier for users to determine which function is most appropriate for their analysis.Differentiationhas been added to estimate Fst, Nei's D, and Jost's D. Please see the documentation for more details.Heterozygosityhas been added to estimate 7 different measures of heterozygosity. Please see the documentation for more details.Private.alleleshas been added to calculate the number of private alleles in each population.- The
Dif_Statsfunction has been deprecated, please used theDifferentiationfunction to calculate pairwise differentiation between populations (Fst, Nei's D, Jost's D) or individuals (Nei's D). - The
Div_Statsfunction has been deprecated, please use theHeterozygosityfunction if you wish to estimate heterozygosity or thePrivate.allelesfunction if you wish to calculate the number of private alleles per population. Please use thePoint_Mapfunction if you wish to visualize the results on a map or plot.
- October 2nd, 2023
Dif_stats_Map,Div_Stats_Map, andPlot_ancestryhave been updated to use a base color of #f4f4f4 instead of grey99 which was throwing an error for some users.- The piesize argument has been added to
Plot_ancestry, the original value of 0.35 was found to be too high, especially in cases where users were mapping a smaller geographic area.
- August 14th, 2023
Div_StatsandDif_statshave been updated to accept a vcf file or vcfR object as input.Div_StatsandDif_statshave been updated to accept a csv file or data frame for population assignment.Plot_ancestryhas been updated to generate structure-like plots using ggplot2 instead of base R and to handle character and numeric values for individual and population names. Note that individual and populations must be of the same type (i.e., both numeric or both characters).- The dependency
rnaturalearthis no longer used. We now usespDatafor mapping data. - The vignette has been updated to accommodate the changes noted above.
- July 17th, 2023
- The horned lizard data was added so that examples can be run by users.
- The write argument has been added to
Div_StatsandDif_statsso that files are not automatically written to the working directory.
- July 17th, 2023
- PopGenHelpR has been updated to rnaturalearthhires in Suggests field of the DESCRIPTION file and now use it conditonally.
- First development of PopGenHelpR, publication on Github, and submission to the CRAN (02/06/2023)