# my_sbm_bi <- sbm::estimateBipartiteSBM(sbm::fungusTreeNetwork$fungus_tree,
# model = 'bernoulli')
my_sbm_bi <- FungusTreeNetwork$sbmResults$fungus_tree
node_names_bi <- list(
row = FungusTreeNetwork$networks$fungus_names,
col = FungusTreeNetwork$networks$tree_names
)
visSbm(my_sbm_bi,
labels = c(row = "Fungus", col = "Tree"),
node_names = node_names_bi,
settings = list(
arrows = TRUE,
arrow_start = "Fungus",
node_color = c(row = "pink", col = "green"),
node_shape = c(row = "dot", col = "square")
)
)
Run the code above in your browser using DataLab