Graph Pattern Visualization

Description

Draw an undirected graph based on presicion matrix to present connection among variables.

Usage

1
2
3
graph.pattern(mat, main = NULL, edge.color = "gray50",
  vertex.color = "red", vertex.size = 3, vertex.label = NA,
  thres = 1e-05)

Arguments

mat

precision matrix that encodes information of graph struture.

main

main title of graph. Default is NULL.

edge.color

color of edge. Default is "gray50".

vertex.color

color of vertex. Default is "red".

vertex.size

size of vertex. Default is 3.

vertex.label

label of vertex. Default is NA.

thres

thresholding level of substituting entry with zero, set entry to zero if its absolute value equals or is less than thres. If thres is negative or zero, no entry will be substituted with zero.

Details

This function generates an udirected graph based on precision matrix. If an entry is zero, then no edge connects corresponding pair of nodes.

Value

A plot of undirected graph.

Author(s)

Will Wei Sun, Zhaoran Wang, Xiang Lyu, Han Liu, Guang Cheng.

See Also

infer.analysis, est.analysis

Examples

1
2
3
 
graph.pattern(ChainOmega(5, sd = 13))
# a triangle graph