plot_expectation: Plot (expected) adjacency matrices

View source: R/plotting.R

plot_expectationR Documentation

Plot (expected) adjacency matrices

Description

Plot (expected) adjacency matrices

Usage

plot_expectation(model)

plot_dense_matrix(A, ...)

plot_sparse_matrix(A)

Arguments

model

A directed_factor_model() or an undirected_factor_model() object.

A

A matrix(), Matrix::Matrix() or Matrix::sparseMatrix() object.

...

Unused.

Value

A ggplot2::ggplot2() plot.

Examples


set.seed(27)

model <- dcsbm(n = 10, k = 2, expected_density = 0.2)

plot_expectation(model)

A <- sample_sparse(model)

plot_sparse_matrix(A)


fastRG documentation built on Aug. 22, 2023, 1:08 a.m.