Learn R Programming

shapeR (version 1.0-1)

Collection and Analysis of Otolith Shape Data

Description

Studies otolith shape variation among fish populations. Otoliths are calcified structures found in the inner ear of teleost fish and their shape has been known to vary among several fish populations and stocks, making them very useful in taxonomy, species identification and to study geographic variations. The package extends previously described software used for otolith shape analysis by allowing the user to automatically extract closed contour outlines from a large number of images, perform smoothing to eliminate pixel noise described in Haines and Crampton (2000) , choose from conducting either a Fourier or wavelet see Gençay et al (2001) transform to the outlines and visualize the mean shape. The output of the package are independent Fourier or wavelet coefficients which can be directly imported into a wide range of statistical packages in R. The package might prove useful in studies of any two dimensional objects.

Copy Link

Version

Install

install.packages('shapeR')

Monthly Downloads

206

Version

1.0-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Lisa Anne Libungan

Last Published

November 21st, 2022

Functions in shapeR (1.0-1)

plotWavelet

Mean and standard deviation of the wavelet coefficients
plotFourierShape

Mean otolith shape based on Fourier reconstruction
outline.reconstruction.plot

Plot outline reconstruction
remove.outline

Remove otolith outline
shape

An example shapeR instance including 160 images.
read.master.list

Read updated master list
setFilter

Set a filter to analyze the shape data
write.image.with.outline

Write outlines on top of the original images for quality checking
plotWaveletShape

Mean otolith shape based on wavelet reconstruction
stdCoefs

Standardize coefficients
smoothout

Contour smoothing
show.original.with.outline

Show the extracted outline on top of the original image
getStdMeasurements

Get simple shape variables after standardization, filtered according to filter
getStdWavelet

Get standardized wavelet coefficients, filtered according to filter
shapeR

shapeR
show,shapeR-method

Show a shapeR object
estimate.outline.reconstruction

Estimate the outline reconstruction based on Fourier/wavelet compared to the outlines that have not been transformed
getMasterlist

Get filtered master.list values
getMeasurements

Get simple shape variables, filtered according to filter
detect.outline

Detect otolith outline
generateShapeCoefficients

Get wavelet/Fourier coefficients and basic shape variables
getFourier

Get Fourier coefficients, filtered according to filter
FISH

An example data file
cluster.plot

Plot data clusters
enrich.master.list

Link information in the info.file to the coefficients obtained from the otolith images
getStdFourier

Get standardized Fourier coefficients, filtered according to filter
getWavelet

Get wavelet coefficients, filtered according to filter
plotFourier

Mean and standard deviation of the Fourier coefficients