plotSbm.matrix {shinySbm}R Documentation

plotSbm.matrix Method

Description

plotSbm method for matrix object

Usage

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

Arguments

x

numeric matrix

ordered

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

transpose

Boolean. Set TRUE to invert columns and rows to flatten a long matrix (Default is FALSE)

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. Here because there no 'sbm' information and only a matrix describing a network, The matrix isn't organized and the tiles are only showing individuals connections.

Examples

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


[Package shinySbm version 0.1.5 Index]