twodviews: twodviews Calculates the PCscores of the 2Dcomp matrix. an...

Description Usage Arguments Value Author(s) Examples

Description

twodviews Calculates the PCscores of the 2Dcomp matrix. an array in a list storing each element of the third dimension of the array (specimen) as element of the list

Usage

1
twodviews(twodlist, scale = TRUE, vector = c(1:5))

Arguments

twodlist

a list containing the landmark configurations of each anatomical view stored as separated lists

scale

logical: TRUE for shape-space, FALSE for form-space

vector

numeric vector: defines which views are to be used

Value

PCscores PC scores

PCs Pricipal Components (eigenvector matrix)

Variance table of the explained variance by the PCs

size vector containing the Centroid Size of each configuration

mshapes a list containing the mean shape of each 2D configuration

dims number of landmarks of each 2D configuration

twodlist the list used as input

Author(s)

Antonio Profico, Alessio Veneziano, Marina Melchionna, Paolo Piras, Pasquale Raia

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(Morpho)
#load the 2D primate dataset
data("Lset2D_list")
#PCA on combined 2D datasets 
combin2D<-twodviews(Lset2D_list,scale=TRUE,vector=c(1:5))
#plot of the first two Principal Components
plot(combin2D$PCscores)
text(combin2D$PCscores,labels=rownames(combin2D$PCscores))
#load the 3D primate dataset
data("Lset3D_array")
#GPA and PCA
GPA_3D<-procSym(Lset3D_array)
#plot of the first two Principal Components
plot(GPA_3D$PCscores)
text(GPA_3D$PCscores,labels=rownames(GPA_3D$PCscores))

Arothron/Arothron documentation built on May 5, 2019, 8:11 a.m.