Compute the weighted coordinates of a spatial unit based on nearest neighbors used during PCoA

WeightedCoordsNN(NN, knn, PCoA_train)

Arguments

NN

list. coordinates and ID of nearest neighbors from PCoA_train matrix

knn

number of neighbors

PCoA_train

PCoA coordinates of reference samples

Value

estimated NMDS position based on nearest neighbors from NMDS