OrderByCrossover {bipartiteD3} | R Documentation |
Find Species Order That Minimises Crossover
Description
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.
Usage
OrderByCrossover(df)
Arguments
df |
A network in data.frame format. (row names for primary layer, column names for secondary layer) |
Value
A list containing 'PrimaryOrder' and 'SecondaryOrder', to be used with bipartite_d3()
Examples
## 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)
[Package bipartiteD3 version 0.3.1 Index]