plot.GPA: Plot a Procrustes configuration

Description Usage Arguments See Also Examples

View source: R/plot.R

Description

Plots the group configuration of a Generalised Procrustes Analysis

Usage

1
2
## S3 method for class 'GPA'
plot(x, pch = NA, pos = NULL, col = "black", bg = "white", cex = 1, ...)

Arguments

x

an object of class GPA

pch

plot symbol

pos

position of the sample labels relative to the plot symbols if pch != NA

col

plot colour (may be a vector)

bg

background colour (may be a vector)

cex

relative size of plot symbols

...

optional arguments to the generic plot function

See Also

procrustes

Examples

1
2
3
4
5
6
7
data(Namib)
GPA <- procrustes(Namib$DZ,Namib$HM)
coast <- c('N1','N2','N3','N10','N11','N12','T8','T13')
snames <- names(Namib$DZ)
bgcol <- rep('yellow',length(snames))
bgcol[which(snames %in% coast)] <- 'red'
plot(GPA,pch=21,bg=bgcol)

Example output

initial  value 10.608343 
iter   5 value 8.868203
iter   5 value 8.867183
iter  10 value 7.883745
iter  15 value 7.637849
final  value 7.619237 
converged
initial  value 6.195981 
iter   5 value 4.395803
iter  10 value 4.319710
iter  10 value 4.316534
iter  10 value 4.315346
final  value 4.315346 
converged

provenance documentation built on May 5, 2021, 1:06 a.m.