Learn R Programming

topolow (version 1.0.0)

calculate_procrustes_difference: Calculate Procrustes Difference Between Maps

Description

Computes the quantitative difference between two maps using Procrustes analysis. The difference is calculated as the sum of squared differences after optimal rotation and scaling.

Usage

calculate_procrustes_difference(map1, map2)

Value

A single numeric value representing the sum of squared differences after Procrustes transformation.

Arguments

map1

Data frame with coordinates from first map (must have X, X.1 columns)

map2

Data frame with coordinates from second map (must have X, X.1 columns)

Examples

Run this code
# Create sample map data
map1 <- data.frame(name = letters[1:10], X = rnorm(10), X.1 = rnorm(10))
map2 <- data.frame(name = letters[1:10], X = rnorm(10), X.1 = rnorm(10))
diff <- calculate_procrustes_difference(map1, map2)

Run the code above in your browser using DataLab