Learn R Programming

morphomap (version 1.5)

morphomapSort: morphomapSort

Description

Sort a series of points stored as a 2D matrix

Usage

morphomapSort(mat)

Value

mat sorted kx2 matrix

Arguments

mat

numeric matrix: a kx2 matrix

Author

Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi

Examples

Run this code
rand<-sample(100)
extsec<-morphomapCircle(10,100)[rand,]
plot(extsec,type="l",asp=1)
sorted<-morphomapSort(extsec)
plot(sorted,type="l",asp=1)

Run the code above in your browser using DataLab