Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/graph.pattern.R
Draw an undirected graph based on presicion matrix to present connection among variables.
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
)
|
mat |
precision matrix that encodes information of graph struture. |
main |
main title of graph. Default is |
edge.color |
color of edge. Default is |
vertex.color |
color of vertex. Default is |
vertex.size |
size of vertex. Default is 3. |
vertex.label |
label of vertex. Default is |
thres |
thresholding level of substituting entry with zero,
set entry to zero if its absolute value equals or is less than |
This function generates an udirected graph based on precision matrix. If an entry is zero, then no edge connects corresponding pair of nodes.
A plot of undirected graph.
Xiang Lyu, Will Wei Sun, Zhaoran Wang, Han Liu, Jian Yang, Guang Cheng.
1 2 3 |
graph.pattern(ChainOmega(5, sd = 13))
# a triangle graph
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.