MyNixOS website logo
Description

Infer Geographic Origin from Isotopic Data.

Routines for re-scaling isotope maps using known-origin tissue isotope data, assigning origin of unknown samples, and summarizing and assessing assignment results. Methods are adapted from Wunder (2010, in ISBN:9789048133536) and Vander Zanden, H. B. et al. (2014) <doi:10.1111/2041-210X.12229> as described in Ma, C. et al. (2020) <doi:10.1111/2041-210X.13426>.

assignR

Basic

Data and tools supporting geographic assignment of materials based on their isotopic chemistry. Isoscapes (environmental isotope maps) can be generated externally or downloaded using the getIsoscapes function. Data from samples of known origin are used to calibrate the relationship between isoscape and sample values, and can be provided by the user or extracted from the package database (knownOrig.rda). Database data or user-provided known-origin or unknown origin sample data can be transformed among different H and O isotope reference scales to improve comparability (refTrans). Functions (calRaster, pdRaster) support calibrating one or more isoscapes (multiple layers combined using isoStack) and inverting the assignment model to estimate the probability of origin for unknown samples across a geographic study domain. Functions (QA, plot.QA) allow quality assessment of assignment results and comparison of methods using split-sample tests and known origin data. Functions (oddsRatio, qtlRaster, jointP, unionP) support post-hoc classification of results, summarization of results from multiple samples, and comparison of support for different locations.

For current production release, see the vignette here and install from CRAN.

For examples demonstrating functions in the latest development release, see https://spatial-lab.github.io/assignR/.

Install and load latest CRAN release

install.packages("assignR")
library(assignR)

Package contents

Datasets

d2h_lrNA - Low-resolution, North American crop of growing season d2H isoscape, used in examples.

sr_MI - Low-resolution crop of locally-weathered Sr isoscape, used in examples.

knownOrig - Hydrogen and oxygen isotope values of known-origin samples including human hair, insect chitin and bird feathers, with location information.

stds - Information on reference scales used to report data from different labs, useful for converting between scales

naMap - North America outline

states - 48 contiguous United States

Functions

subOrigData - Subset the known-origin stable isotope dataset included in this package

refTrans - Transform data among reference scales

getIsoscapes - Download and unpack isoscapes from waterisotopes.org

isoStack - Combine multiple isoscapes

plot.isoStack - Plot isoStack object

calRaster - Transform one or more isoscapes to reflect target sample type

pdRaster - Assign sample to calibrated isoscape(S) based on isotopic composition(s)

qtlRaster - Select most likely region of origin from posterior probability surface (by cumulative percent area probability)

jointP - Calculate joint probability for individuals of common origin (product of probabilities)

unionP - Calculate probability that at least one individual came from each map location (union of probabilities)

oddsRatio - Calculate ratio of odds for two locations or areas (points or polygons)

wDist - Summarize distance and direction of movement

c.wDist - Combine wDist statistics for multiple samples

plot.wDist - Plot results from wDist

QA - Quality analysis of geographic assignment

plot.QA - Plot results of one or more quality analyses from QA function.

Build status codecov

Metadata

Version

2.4.1

License

Unknown

Platforms (77)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows