viamaris: calculate pairwise oceanic distances among sampling locations

viamarisR Documentation

calculate pairwise oceanic distances among sampling locations

Description

calculate pairwise oceanic distances among sampling locations

Usage

viamaris(sampleXY, extent.buffer = NULL)

Arguments

sampleXY

- a data frame with three columns: ID, X and Y (in decimal degrees)

extent.buffer

(optional) number of degrees to extend raster around your samples, default = 0.5 (you may need to increase this to allow navigation around land masses that extend beyond the extent of your samples)

Value

distmat a list object containing the function call, distance matrix, and spatial objects you can use for plotting (original coordinates, adjusted coordinates (if used) and study area raster)

distmat.csv a pairwise matrix of distances (Km) between sampling sites

XY.kml a .kml file of the original coordinates that you can view in google earth

adjustedXY.kml a .kml file of the adjusted coordinates that you can view in google earth (if necessary)

Author(s)

Chris Brauer

Examples

 ## set directory for results to be written
 setwd("path/to/working/directory")

 # load example coordinate file
 data(DelphinusXY)

 # run analysis
 dist.mat <- viamaris(DelphinusXY, extent.buffer = 5)

pygmyperch/melfuR documentation built on April 19, 2024, 7:24 a.m.