morphomapPic: morphomapPic

Description Usage Arguments Author(s) Examples

Description

Save the sections defined via morphomapShape or morphomapCore

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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)

morphomap documentation built on Jan. 13, 2021, 6:27 a.m.