plot_network: plot sparse component for use igraph and network layout

Description Usage Arguments Value Examples

View source: R/LSVAR.R

Description

Plot a network to illustrate the estimated sparse component

Usage

1
plot_network(mat, threshold = 0.1)

Arguments

mat

a p by p matrix, indicating the sparse component

threshold

the threshold for presenting the edges in the network

Value

A network plot for the sparse component

Examples

1
2
3
set.seed(1)
est_mats <- matrix(rnorm(400, 0, 1), 20, 20)
plot_network(est_mats, threshold = 0.1)

LSVAR documentation built on May 26, 2021, 5:07 p.m.