calc_dist | R Documentation |
This function calculates the euclidean distance from ancestry matrices (Q). It assigns isolates to groups using a pairwise distance of 0 (+/- 1 SD). These membership groups are then plotted (if plot = TRUE) as a network and output as a membership table at each specified K value.
calc_dist(K, plot = TRUE)
K |
The K value (or range) used to calculate ancestry matrix |
plot |
TRUE/FALSE: Plots relationships between isolates visually |
membership.txt file containing membership assignments at each K value
Kplot.tiff TIFF file containing network plot at specified K value
calc_dist(K = 4)
calc_dist(K = 2:20, plot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.