create.graph.long {CJIVE}R Documentation

Function for plotting networks with ggplot

Description

Convert matrix representation of a network for graphical display via ggplot

Usage

create.graph.long(gmatrix, sort_indices = NULL)

Arguments

gmatrix

square matrix of size p-by-p in which entries represent the strength of (un-directed) edges between the p nodes

sort_indices

vector of length p by which nodes are sorted. If NULL, then nodes are not sorted. Default is NULL.

Value

a data frame of three variables: X1, which represents the row from which the edge comes; X2, which represents the column from which the edge comes; 3) value, matrix entry representing the strength of the edge between the nodes represented by X1 and X2


[Package CJIVE version 0.1.0 Index]