plot.SBM: SBM Plot

Description Usage Arguments Details Value

View source: R/R6Class-SBM.R

Description

Basic matrix plot method for SBM object or mesoscopic view

Usage

1
2
3
4
5
6
7
8
## S3 method for class 'SBM'
plot(
  x,
  type = c("data", "expected", "meso"),
  ordered = TRUE,
  plotOptions = list(),
  ...
)

Arguments

x

an object inheriting from class SBM

type

character for the type of plot: either 'data' (true connection), 'expected' (fitted connection) or 'meso' (mesoscopic). Default to 'data'.

ordered

logical: should the rows and columns be ordered according to the clustering? Default to TRUE (not taken into account for 'meso').

plotOptions

list with parameters for 'meso' type plot and data type plot. Details are given below

...

additional parameters for S3 compatibility. Not used

Details

The list of parameters plotOptions for the mesoscopic plot is:

For type = 'data' or 'expected plot', the list of parameters plotOptions is

Value

a ggplot2 object for the 'data' and 'expected', a list with the igraph object g and the layout for the 'meso'


GrossSBM/sbm documentation built on April 8, 2021, 5:53 a.m.