Learn R Programming

morphomap (version 1.5)

morphomapTranslate: morphomapTranslate

Description

Translate a section to a new center defined by the user

Usage

morphomapTranslate(corA, medA, Cx, Cy)

Value

cortical new centered coordinates of the external outline

medullar new centered coordinates of the internal outline

Arguments

corA

matrix: coordinates of the external outline

medA

matrix: coordinates of the internal outline

Cx

numeric: new x center coordinate

Cy

numeric: new y center coordinate

Author

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

Examples

Run this code
extsec<-morphomapCircle(10,1000)
intsec<-morphomapCircle(8,1000)
plot(extsec,asp=1,type="l",xlim=c(-11,11),ylim=c(-11,11))
points(intsec,type="l")
traSect<-morphomapTranslate(extsec,intsec,1,1)
points(traSect$cortical,type="l",col="red")
points(traSect$medullar,type="l",col="red")

Run the code above in your browser using DataLab