Description Usage Arguments Value Examples
Visualize the conditional (in)dependence structure.
1 2 3 4 5 6 7 8 9 10 11 12 13  | 
x | 
 An object of class   | 
layout | 
 Character string. Which graph layout (defaults is   | 
neg_col | 
 Character string. Color for the positive edges (defaults to a colorblind friendly red).  | 
pos_col | 
 Character string. Color for the negative edges (defaults to a colorblind friendly green).  | 
edge_magnify | 
 Numeric. A value that is multiplied by the edge weights. This increases (> 1) or decreases (< 1) the line widths (defaults to 1).  | 
node_size | 
 Numeric. The size of the nodes (defaults to   | 
palette | 
 A character string sepcifying the palette for the   | 
node_names | 
 Character string. Names for nodes of length p.  | 
node_groups | 
 A character string of length p (the number of nodes in the model). This indicates groups of nodes that should be the same color (e.g., "clusters" or "communities").  | 
... | 
 Currently ignored.  | 
An object of class ggplot
1 2 3 4 5 6 7 8  | # data
Y <- ptsd
# estimate graph
fit <- ggm_inference(Y, boot = FALSE)
# get info for plotting
plot(get_graph(fit))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.