plotSbm.SimpleSBM_fit {shinySbm}R Documentation

plotSbm.SimpleSBM_fit Method

Description

plotSbm method for SimpleSBM_fit object

Usage

## S3 method for class 'SimpleSBM_fit'
plotSbm(
  x,
  ordered = FALSE,
  transpose = FALSE,
  labels = NULL,
  plotOptions = list()
)

Arguments

x

Sbm model of class '"SimpleSBM_fit"'

ordered

Boolean. Set TRUE if the matrix should be reordered (Default is FALSE)

transpose

isn't used in this method

labels

named list (names should be: '"col"' and '"row"') of characters describing columns and rows component (Default is NULL)

plotOptions

list providing options. See details below.

Details

The list of parameters plotOptions for the matrix plot is

Value

a ggplot object corresponding to the matrix plot inside the app. Groups the network matrix is organized by blocks, the small tiles are for individuals connections. The big tiles between red lines are for block connectivity

Examples


# 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")
)


[Package shinySbm version 0.1.5 Index]