Collection of conversion, analytical, geodesic, mapping, and plotting functions. Used to support packages and code written by researchers at the Southwest Fisheries Science Center of the National Oceanic and Atmospheric Administration.
swfscMisc is a collection of utility functions used at the Southwest Fisheries Science Center in La Jolla, CA. The package contains functions for geodesic calculations, commonly used mapping functions, plotting special symbols, interacting with DAS sighting data generated by the line-transect survey data entry program WinCruz, and miscellaneous analytical and conversion functions.
To install the stable version from CRAN:
install.packages('swfscMisc')
To install the latest version from GitHub:
# make sure you have Rtools installedif (!require('devtools')) install.packages('devtools')# install from GitHubdevtools::install_github('ericarcher/swfscMisc')
Geodesic functions:
DAS file functions:
Mapping functions:
Plotting functions:
Miscellaneous functions:
plotAssignments
function.autoUnits
functionlat.range
and lon.range
to NULL
in sample.map
. If not specified, the ranges will be set to the ranges of the lat
and lon
.transparent
functiondas.read
to handle errors in position and suppress warnings about NA
s
during numerical conversions.das.map
to remove records with no positionisBetween
to accept a vector of numbersdiversity
function (moved from strataG package)isBetween
function to test if a number is between two numbers