View source: R/edge_contortion.R
edge_contortion | R Documentation |
This function measure the deviation of edges in physical space from the expected value given by the genetic distance.
edge_contortion( graph, latitude = "Latitude", longitude = "Longitude", P = NULL )
graph |
A |
latitude |
The name of the node property that has the value of the latitude for that node (default 'Latitude'). |
longitude |
The name of the edge property that has the longitude (default 'Longitude') |
P |
A non-genetic distance (physical or ecological) matrix on which the genetic distances are compared. |
A copy of the graph with new properties 'contortion' (the magnitude of differences between genetic and physical distances) and 'stretch' (as 'Compressed' or 'Extended')
Rodney J. Dyer rjdyer@vcu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.