Skip to contents

Core POPMAPS workflow

popmaps()
Estimate an ancestry probability surface
anc_extract()
Extract estimated ancestry coefficients
validate_popmaps_baseline()
Validate against the POPMAPS 1.03 baseline

Raster outputs and visualization

popmaps_rast()
Convert POPMAPS output to a terra raster
write_popmaps()
Write POPMAPS output layers as GeoTIFFs
plot_popmaps()
Plot modern POPMAPS raster outputs
write_popmaps_plot()
Write a modern POPMAPS map to PNG

Tuning and surface comparison

tune_popmaps()
Tune POPMAPS parameters with cross-validation
adaptive_tune_popmaps()
Adaptively tune POPMAPS parameters
diagnose_tuning()
Diagnose a POPMAPS tuning result
suggest_tuning_grid()
Suggest a data-adaptive POPMAPS tuning grid
suggest_surface_tuning_grid()
Suggest a POPMAPS tuning grid from a candidate surface
compare_popmaps_surfaces()
Compare candidate POPMAPS interpolation surfaces
plot_surface_comparison()
Plot a POPMAPS surface comparison
write_surface_comparison_report()
Write a POPMAPS surface comparison report

Input preparation

prepare_popmaps_surface()
Prepare a POPMAPS interpolation surface
surface_from_points()
Create a POPMAPS surface from coordinates
locs_from_sf()
Convert sf points to a POPMAPS location table
surfaces_from_raster_stack()
Create candidate surfaces from a raster stack
surface_from_eems()
Convert EEMS output to a POPMAPS conductance surface
surface_from_feems()
Convert FEEMS output to a POPMAPS conductance surface

Legacy compatibility

jackknife()
Estimate ancestry coefficents for empirical sites
jackknife_viz()
Visualize jackknife results
popmap_viz()
Legacy POPMAPS 1.03 ancestry-surface visualization
ptsNpop()
Partition points by genetically defined populations
bg_pop_pts()
Create background points for genetically defined populations
popmap_pca()
Calculate an environmental PCA
envplot()
Visualizing the environmental space of genetically defined populations

Example data

hija_raster
Geospatial layer for ancestry probability surface estimation
hija_struc
Hilaria jamesii empirical genetic data
hija_herb
Locations of herbarium specimens for Hilaria jamesii.
hija_fst
Pairwise Fst values between empirical sampling locations