Learn R Programming

provenance (version 1.5)

plot.GPA: Plot a Procrustes configuration

Description

Plots the group configuration of a Generalised Procrustes Analysis

Usage

"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

Run this code
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)

Run the code above in your browser using DataLab