ca.procrustes.curve: Seriate Using Reference Curve

View source: R/procrustes.R

ca.procrustes.curveR Documentation

Seriate Using Reference Curve

Description

Obtain a ranking of row and column scores projected onto a reference curve of an ideal seriation (row and column scores are ranked separately). Scores of correspondence analysis have been fit to those produced by reference matrix contain an ideal seriation using a Procrustes method, projecting them. Rotation is determined by minimizing Euclidean distance from each row score to the nearest reference row score. Correspondence analysis is performed using the ca package \insertCitenenadic_correspondence_2007lakhesis.

Usage

ca.procrustes.curve(obj, resolution = 10000)

Arguments

obj

An incidence matrix of size n x k.

resolution

Number of samples to use for plotting points along polynomial curve (default is 10000).

Value

A data frame of the following:.

  • ⁠Procrustes1,Procrustes2⁠ The location of the point on the biplot after fitting.

  • CurveIndex The orthogonal projection of the point onto the reference curve, given as the index of the point sampled along y = \beta_2 x^2 + \beta_0.

  • Distance The squared Euclidean distance of the point to the nearest point on the reference curve.

  • Rank The ranking of the row or column, a range of ⁠1:nrow`` and ⁠1:ncol“.

  • Type Either row or col.

  • sel Data frame column used in shiny app to indicate whether point is selected in biplot/curve projection.

References

\insertAllCited

Examples

data("quattrofontanili")
ca.procrustes.curve(quattrofontanili)


lakhesis documentation built on June 22, 2024, 10:27 a.m.