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)
Arguments
df: A network in data.frame format. (row names for primary layer, column names for secondary layer)
Returns
A list containing 'PrimaryOrder' and 'SecondaryOrder', to be used with bipartite_d3()