Setup and Introduction

This vignette demonstrates the latest features from the development version, which is installed via GitHub.

library(devtools)
install_github("SPATIAL-Lab/assignR@*release")

We will introduce the basic functionality of assignR using data bundled with the package. We’ll review how to access data for known-origin biological samples and environmental models, use these to fit and apply functions estimating the probability of sample origin across a study region, and summarize these results to answer research and conservation questions. We’ll also demonstrate a quality analysis tool useful in study design, method comparison, and uncertainty analysis.


Let’s load assignR and two other packages we’ll need.

library(assignR)
library(raster)
library(sp)

Now add some data from the package to your local environment. Load and plot the North America boundary mask.

data("naMap")
plot(naMap)