Part of MomX
The goal of Momocs is to provide a complete, convenient, reproducible and open-source toolkit for 2D morphometrics.
It includes most common 2D morphometrics approaches on outlines, open outlines, configurations of landmarks, traditional morphometrics, and facilities for data preparation, manipulation and visualization with a consistent grammar throughout.
It allows reproducible, pipeable, complex morphometric analyses and other morphometrics approaches should be easy to plug in, or develop from, on top of this canvas.
The last released version can be installed from CRAN with:
But I recommend using (and only support) the development version from GitHub with:
This is a basic example of a complete analysis doing: inspection, normalization of raw outlines, elliptical Fourier transforms, dimmensionality reduction and classification, using a single line.
hearts %T>% # A toy dataset stack() %>% # Take a family picture of raw outlines fgProcrustes() %>% # Full generalized Procrustes alignment coo_slide(ldk = 2) %T>% # Redefine a robust 1st point between the cheeks stack() %>% # Another picture of aligned outlines efourier(6, norm=FALSE) %>% # Elliptical Fourier Transforms PCA() %T>% # Principal Component Analysis plot_PCA(~aut) %>% # A PC1:2 plot LDA(~aut) %>% # Linear Discriminant Analysis plot_CV() # And the confusion matrix after leave one out cross validation