Learn R Programming

shapeR (version 1.0-2)

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

242

Version

1.0-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Lisa Anne Libungan

Last Published

October 28th, 2025

Functions in shapeR (1.0-2)

plotFourierShape

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

Plot outline reconstruction
read.master.list

Read updated master list
plotFourier

Mean and standard deviation of the Fourier coefficients
getWavelet

Get wavelet coefficients, filtered according to filter
setFilter

Set a filter to analyze the shape data
shapeR-package

shapeR: Otholith analysis
shape

An example shapeR instance including 160 images.
shapeR

shapeR
show,shapeR-method

Show a shapeR object
show.original.with.outline

Show the extracted outline on top of the original image
smoothout

Contour smoothing
plotWavelet

Mean and standard deviation of the wavelet coefficients
stdCoefs

Standardize coefficients
plotWaveletShape

Mean otolith shape based on wavelet reconstruction
getMasterlist

Get filtered master.list values
getFourier

Get Fourier coefficients, filtered according to filter
detect.outline

Detect otolith outline
FISH

An example data file
generateShapeCoefficients

Get wavelet/Fourier coefficients and basic shape variables
cluster.plot

Plot data clusters
estimate.outline.reconstruction

Estimate the outline reconstruction based on Fourier/wavelet compared to the outlines that have not been transformed
enrich.master.list

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

Remove otolith outline
getStdFourier

Get standardized Fourier coefficients, filtered according to filter
getMeasurements

Get simple shape variables, filtered according to filter
getStdMeasurements

Get simple shape variables after standardization, filtered according to filter
write.image.with.outline

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

Get standardized wavelet coefficients, filtered according to filter