# my_sbm_bi <- sbm::estimateBipartiteSBM(sbm::fungusTreeNetwork$fungus_tree,
# model = 'bernoulli')
my_sbm_bi <- FungusTreeNetwork$sbmResults$fungus_tree
plotSbm(my_sbm_bi,
ordered = TRUE, transpose = TRUE,
plotOptions = list(title = "An example Matrix")
)
# my_sbm_uni <- sbm::estimateSimpleSBM(sbm::fungusTreeNetwork$tree_tree,
# model = "poisson")
my_sbm_uni <- FungusTreeNetwork$sbmResults$tree_tree
plotSbm(my_sbm_uni,
ordered = TRUE,
plotOptions = list(title = "An example Matrix")
)
n_col <- 100
n_row <- 90
mat <- matrix(sample(0:10, n_col * n_row, replace = TRUE), n_col, n_row)
plotSbm(mat,
transpose = TRUE,
labels = list(col = "Columns", row = "Rows"),
plotOptions = list(colValue = "blue")
)
Run the code above in your browser using DataLab