swfscMisc is a collection of utility functions used at the NOAA Southwest Fisheries Science Center in La Jolla, CA. The package contains functions for geodesic calculations, commonly used mapping functions, plotting special symbols, 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 devtools installed
if (!require('devtools')) install.packages('devtools')
# install from GitHub
devtools::install_github('ericarcher/swfscMisc')
- submit suggestions and bug-reports: https://github.com/ericarcher/swfscMisc/issues
- send a pull request: https://github.com/ericarcher/swfscMisc/
- e-mail: eric.archer@noaa.gov
-
Geodesic functions:
- bearing
- datum
- distance
- circle.polygon
- convert.angle
- convert.distance
-
Plotting functions:
- braces
- catSpatInterp Categorical Spatial Interpolation
- color.name
- lab.wid
- lat.lon.axes
- row.col.page.fit
- scatterdens
- scatterhist
- sex.symbols
-
Miscellaneous functions:
- affin.prop
- box.area
- central.quantile
- copy.tri
- crossing.point
- distSmry
- fisher.p
- geometric.mean
- harmonic.mean
- isBetween
- na.count
- odds conversion (odds, invOdds, logOdds, invLogOdds)
- one.arg
- plotAssignments
- pVal
- ceiling, floor, trunc, round (.data.frame)
- uniform.test
- setupClusters
- sn.params
- which.nearest
- zero.pad
- fixed bug in runjags2list if variable in monitor vector wasn't in model
- removed
sample.map()
- added
imdo()
- added
intersectingPoint()
- added ability to use
modeest::mlv()
to estimate mode indistSmry()
- fixed
pVal()
to handle NA and NaN values correctly - deprecating
diversity()
. New function insprex
package. - added
runjags2list()
to format posterior samples fromrunjags::run.jags()
. - corrected package name alias documentation for CRAN
- reset setupClusters to choose correct function for OS
- added
perpDist()
andperpPt()
- added
distSmry()
- added
sn.params
functions for computing skew normal parameters and moments
- removed das.* functions
- added catSpatInterp for Categorical Spatial Interpolation (based on code by Timo Grossenbacher)
- begin deprecation of das.* functions. to be removed in v1.5.
- change
destination()
to accept vectors and return a matrix. - fixed
plotAssignments()
to not change class names. - updated spatstat import
- fixed plotAssignments to use facets and removed grids and space around panels
- added setupClusters
- Added rounding functions for data.frames.
- Removed NEWS.md - changelog moved to README.md
- Added
plotAssignments
function.
- Added
autoUnits
function - Changed default arguments for
lat.range
andlon.range
toNULL
insample.map
. If not specified, the ranges will be set to the ranges of thelat
andlon
.
- Added
transparent
function - Changed distance and destination functions to accept partial matches for method of calculation, type of surface, and units
- Fixed
das.read
to handle errors in position and suppress warnings aboutNA
s during numerical conversions. - Fixed
das.map
to remove records with no position
- Changed
isBetween
to accept a vector of numbers
- Added NEWS.md
- Added
diversity
function (moved from strataG package) - Added
isBetween
function to test if a number is between two numbers