R scripts used in the SPATIAL lab at the University of Utah.