stocnet / manynet

Many Ways to Make, Manipulate, and Map Myriad Networks
https://stocnet.github.io/manynet/
Other
12 stars 0 forks source link

Add arguments in `autographs()` that allows users to specify whether the layout from the first, last, or average/mix of the two is used for waves #48

Closed henriquesposito closed 10 months ago

henriquesposito commented 10 months ago

The autographs() function now accepts a "based_on" layout argument.

library(migraph)
library(manynet)
library(patchwork)
mpn_elite_mex <- mpn_elite_mex %>% to_subgraph(in_mpn == 1)
mpn_elite_mex2 <- generate_permutation(mpn_elite_mex)
(autographs(netlist = list(mpn_elite_mex, mpn_elite_mex2),
           based_on = "first") & ggtitle("Based on first layout")) /
  (autographs(netlist = list(mpn_elite_mex, mpn_elite_mex2),
             based_on = "last")  & ggtitle("Based on last layout")) /
  (autographs(netlist = list(mpn_elite_mex, mpn_elite_mex2),
             based_on = "both") & ggtitle("Based on both layouts"))

This is a first attempt, @jhollway please let me know what you think and I can change accordingly. Thank you.

jhollway commented 10 months ago

Thanks @henriquesposito. Can you please share illustrations of these options here?

henriquesposito commented 10 months ago

Here you go, thank you.

Image