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

weighted_coords_nn(nn, knn, pcoa_train)

Arguments

nn

list. coordinates & 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