twodvarshape: twodvarshape Calculates the shape variation associated to a...

Description Usage Arguments Value Author(s) Examples

Description

twodvarshape Calculates the shape variation associated to a value of PC scores associated to a specific 2D view

Usage

1
twodvarshape(twodviews_ob, scores, PC, view)

Arguments

twodviews_ob

object from twodviews()

scores

numeric: the values of the PC scores for which the visualization is called

PC

PC chosen

view

numeric: 2D set to be used for shape variation visualization

Value

mat matrix of 2D coordinates associated to the called shape variation

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
#load the 2D primate dataset
data("Lset2D_list")
#combine the 2D datasets and PCA
combin2D<-twodviews(Lset2D_list,scale=TRUE,vector=c(1:5))
#calculate the shape variation associated to the negative extreme value of PC1
min_PC1<-twodvarshape(combin2D,min(combin2D$PCscores[,1]),1,5)
plot(min_PC1,asp=1)
#calculate the shape variation associated to the positive extreme value of PC1
max_PC1<-twodvarshape(combin2D,max(combin2D$PCscores[,1]),1,5)
plot(max_PC1,asp=1)

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