View source: R/OrderByCrossover.R
OrderByCrossover | R Documentation |
Find an order of species that is likely to minimise cross over. It builds upon the 'cca' method used in the bipartite package, but orders the compartments by size, which tends to give better effects.
OrderByCrossover(df)
df |
A network in data.frame format. (row names for primary layer, column names for secondary layer) |
A list containing 'PrimaryOrder' and 'SecondaryOrder', to be used with bipartite_d3()
## Not run:
data(Safariland, package='bipartite')
S_orders <- OrderByCrossover(Safariland)
bipartite_D3(Safariland,
filename = 'SF_sorted',
SortPrimary = S_orders[[1]],
SortSecondary = S_orders[[2]])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.