Description Usage Arguments Value Author(s)
View source: R/genetic_autocorrealtion.R
This function takes two distance matrices, one for physical separation and the other for genetic separation as well as a bin size and performs the spatial autocorrelation analysis of Smouse & Peakall (1999).
1 | genetic_autocorrelation(P, G, bins, perms = 0, plot = FALSE)
|
P |
A square physical distance matrix |
G |
A square genetic distance matrix (same size as P) |
bins |
The distance bins to be estimated. These will be taken sequentially such that the first bin will be all observations whose separation is greater than binsize[1] and less than binsize[2]. |
perms |
The number of permutations to use to test significance at each distance bin. |
plot |
A flag (default=FALSE) to show distribution of randomized correlations. |
A data.frame with bins and correlations.
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.