If you use this code, please cite our work:

I. Epifanio, M.V. Ibáñez and A. simó. Archetypal shapes based on landmarks and extension to handle missing data. 

*Files LFunctions_to_calculate_real_archetypes_with_swap2.R, LstepArchetypesMod.R and LstepArchetypoids.R are used
for computing archetype and archetypoid shapes. A demo about their use can be seen in exampledigits3.R

*File exampledigits3.R contains the instructions for reproducing the results with digits 3 data set.

*File dibujosaxes.R is an auxiliary file for making all figures with the same axes as in our manuscript. 
Not necessary for computing archetypal shapes. It contains some modified functions of the R library shapes for making plots.

*File MstepArchetypesMod.R computes AA with missing data in the multivariate case.

*Files toyexamplemultivariate.R and toy.m can be used for reproducing results in the supplementary material.

