Learn R Programming

monogeneaGM (version 1.1)

plotLM: Scatter plot of Generalized Procrustes Analysis (GPA) coordinates of anchor landmarks

Description

This function generates a scatter plot of GPA coordinates of anchor landmarks, with the option of making a wireframe plot by joining mean GPA coordinates of adjacent landmarks.

Usage

plotLM(x, tit = "", pointscale = 1, axispointscale = 1, meansize = 1, polygon.outline = FALSE, xbound = NULL, ybound = NULL, pch.suppress = FALSE)

Arguments

x
an array containing GPA coordinate data of anchor landmarks
tit
title of the plot
pointscale
a numeric constant for controlling the symbol size for observations
axispointscale
a numeric constant for controlling the font size of labels of values on the xy axes
meansize
a constant for controlling the symbol size of the mean coordinates
polygon.outline
if TRUE, a wireframe plot connecting all adjacent landmarks is made
xbound
a numeric vector specifying the range of x values for the plot
ybound
a numeric vector specifying the range of y values for the plot
pch.suppress
if TRUE, only the mean coordinates of the landmarks are plotted

Details

The resulting scatter plot is an important graphical sanity check for potential problems after performing GPA.

References

Khang TF, Soo OYM, Tan WB, Lim LHS. (2016). Monogenean anchor morphometry: systematic value, phylogenetic signal, and evolution. PeerJ 4:e1668.

See Also

procrustesFit, stdLM

Examples

Run this code
data(liewi_gpa)

nice_title <- expression(paste("Dorsal anchor ", italic(L.liewi)))
plotLM(liewi_gpa, tit=nice_title, pointscale=0.8, axispointscale=0.8,
meansize=1.2, polygon.outline=TRUE,c(-.6,.6),c(-.6,.6) )

Run the code above in your browser using DataLab