# \donttest{
library(lattice)
library(colorRamps)
data(HomFem38023)
meshes<-morphomapSegm(HomFem38023, param1=4)
perMesh<-meshes$external
endMesh<-meshes$internal
mech_length<-380.23
rawSections<-morphomapCore(out.sur=perMesh,
inn.sur=endMesh,num.sect=61,mech.len = mech_length,
start = 0.2,end=0.8)
shapeSections<-morphomapShape(rawSections,21,sects_vector=NULL,cent.out="CCA",delta=0.1)
femthick<-morphomapThickness(shapeSections)
dataDF<-morphomapDF(femthick)$XYZ
contourplot(dataDF[, 3] ~ dataDF[, 1] + dataDF[, 2],
col.regions=blue2green2red(101),region=TRUE,
colorkey=list(at=seq(0,1,length.out = 100)),
scales = list(x = list(at = seq(0,100,length.out = 5), c("A","M","P","L","A"),
alternating = 1)),asp=1.5,cuts=20,xlab="femur margin",ylab="biomechanical length")
# }
Run the code above in your browser using DataLab