plot.procD.lm: Plot Function for geomorph

View source: R/geomorph.utils.r

plot.procD.lmR Documentation

Plot Function for geomorph

Description

Plot Function for geomorph

Usage

## S3 method for class 'procD.lm'
plot(
  x,
  type = c("diagnostics", "regression", "PC"),
  outliers = FALSE,
  predictor = NULL,
  reg.type = c("PredLine", "RegScore"),
  ...
)

Arguments

x

plot object (from procD.lm)

type

Indicates which type of plot, choosing among diagnostics, regression, or principal component plots. Diagnostic plots are similar to lm diagnostic plots, but for multivariate data. Regression plots plot multivariate dispersion in some fashion against predictor values. PC plots project data onto the eigenvectors of the covariance matrix for fitted values.

outliers

Logical argument to include outliers plot, if diagnostics are performed

predictor

An optional vector if "regression" plot type is chosen, and is a variable likely used in procD.lm. This vector is a vector of covariate values equal to the number of observations.

reg.type

If "regression" is chosen for plot type, this argument indicates whether a prediction line (Predline) plot, or regression score (RegScore) plotting is performed.

...

other arguments passed to plot (helpful to employ different colors or symbols for different groups). See plot.default and par

Value

An object of class "plot.procD.lm" is a list with components that can be used in other plot functions, such as the type of plot, points, a group factor, and other information depending on the plot parameters used.

Author(s)

Michael Collyer


geomorph documentation built on Sept. 1, 2023, 1:07 a.m.