graph.pattern: Graph Pattern Visualization

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/graph.pattern.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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)

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

See Also

infer.analysis, est.analysis

Examples

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

Tlasso documentation built on Feb. 1, 2022, 9:07 a.m.