smoothout | R Documentation |
Remove high frequency pixel noise around the otolith outline
smoothout(object, n)
object |
A |
n |
The number of iterations. The default value is 100. |
A shapeR
object with smoothed otolith outlines in the slot outline.list
Lisa Anne Libungan
Haines, A.J., Crampton, J.S. (2000). Improvements to the method of Fourier shape analysis as applied in morphometric studies. Palaeontology 43: 765-783.
Claude, J. (2008) Morphometrics with R. Springer. 316 p.
data(shape) shape = smoothout(shape,n=100) # Plot smoothed outline on top of original outline for comparison outline.org=shape@outline.list.org[["IC"]][["403_2"]] outline=shape@outline.list[["IC"]][["403_2"]] plot(outline.org$X,outline.org$Y,type='l',xlab="",ylab="",lwd=2,axes=FALSE) lines(outline$X,outline$Y,col="red",lwd=2) legend("bottomleft",c('Original','Smoothed'),lty=1,col=c('black','red'),lwd=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.