morphomapPic {morphomap} | R Documentation |
morphomapPic
Description
Save the sections defined via morphomapShape or morphomapCore
Usage
morphomapPic(
morphomap.core,
morphomap.shape,
vector = NULL,
full = TRUE,
width = 1500,
height = 1500,
pointsize = 12,
res = 300,
colthk = "red",
collbs = "blue",
dirpath = tempdir()
)
Arguments
morphomap.core |
list: morphomap.core object |
morphomap.shape |
list: morphomap.shape object |
vector |
numeric: define which sections will be saved |
full |
logical: if TRUE the thickness at ALPM is reported |
width |
numeric: width of the picture |
height |
numeric: height of the picture |
pointsize |
numeric: pointsize of plotted text |
res |
numeric: the nominal resolution in ppi which will be recorded |
colthk |
specify the color for the numbers |
collbs |
specify the color for the labels |
dirpath |
character: path of the directory where the pictures will be saved |
Author(s)
Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
Examples
#export picture from a human femur bone
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=11,mech.len = mech_length,
start = 0.2,end=0.8)
shapeSections<-morphomapShape(rawSections,250,sects_vector=NULL,cent.out="CCA",
delta=0.5, side="left")
morphomapPic(rawSections,shapeSections,full=TRUE,dirpath=tempdir(),
width=2500,height=2500)
#export picture from a chimpanzee femur bone
data(PanFem27713)
meshes<-morphomapSegm(PanFem27713, param1=3)
perMesh<-meshes$external
endMesh<-meshes$internal
mech_length<-277.13
rawSections<-morphomapCore(out.sur=perMesh,
inn.sur=endMesh,num.sect=11,mech.len = mech_length,
start = 0.2,end=0.8)
shapeSections<-morphomapShape(rawSections,250,sects_vector=NULL,cent.out="CCA",delta=0.5,
side="left")
morphomapPic(rawSections,shapeSections,full=TRUE,dirpath=tempdir(),
width=2500,height=2500)
[Package morphomap version 1.5 Index]