Learn R Programming

LSVAR (version 1.2)

plot_network: plot sparse component for use igraph and network layout

Description

Plot a network to illustrate the estimated sparse component

Usage

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

Run this code
# NOT RUN {
set.seed(1)
est_mats <- matrix(rnorm(400, 0, 1), 20, 20)
plot_network(est_mats, threshold = 0.1)
# }

Run the code above in your browser using DataLab