View source: R/morphomapTranslate.R
morphomapTranslate | R Documentation |
Translate a section to a new center defined by the user
morphomapTranslate(corA, medA, Cx, Cy)
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 |
cortical new centered coordinates of the external outline
medullar new centered coordinates of the internal outline
Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.