plot.GPA: Plot a Procrustes configuration

View source: R/plot.R

plot.GPAR Documentation

Plot a Procrustes configuration

Description

Plots the group configuration of a Generalised Procrustes Analysis

Usage

## 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

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)

provenance documentation built on May 29, 2024, 4:23 a.m.