Produces a node relevance plot based on the node relevance index
node_relevance_plot(network, r_star, node_names, node_label_size = 2)
Data Frame consisting of two variable, the node name and the node relevance value.
GNAR network object, which is the underlying network for the time series under study.
Maximum active r-stage depth for neighbourhood regression.
Names corresponding to each, this makes identifying nodes in the plot easier. If this argument is NULL, then the plot links to each node a number.
Text size when producing the plot. Default is 2, however, depending on the number of nodes it might be necessary to adjust the size.
Daniel Salnikov and Guy Nason.
Nason, G.P., Salnikov, D. and Cortina-Borja, M. (2023) New tools for network time series with an application to COVID-19 hospitalisations. https://arxiv.org/abs/2312.00530
#
# Produces a node relevance plot with respect to a stationary GNAR process
# with underlying network fiveNet
#
# GNAR simulation
gnar_simulation <- GNARsim(n = 100, net=fiveNet, alphaParams = list(rep(0.25, 5), rep(0.12, 5)),
betaParams = list(c(0.25, 0.13), c(0.20)), sigma=1)
# Node relevance plot without names
node_relevance_plot(network = fiveNet, r_star = 2, node_label_size = 10)
#
# Node relevance plot with names
#
node_relevance_plot(network = fiveNet, r_star = 2, node_names = c("A", "B", "C", "D", "E"),
node_label_size = 10)
Run the code above in your browser using DataLab