Visualize the conditional dependence structure.
# S3 method for graph plot( x, layout = "circle", neg_col = "#D55E00", pos_col = "#009E73", edge_magnify = 1, node_size = 10, palette = 2, node_names = NULL, node_groups = NULL, ... )
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
# \donttest{ Y <- na.omit(bfi[,1:25]) fit <- ggmncv(cor(Y), n = nrow(Y), progress = FALSE) plot(get_graph(fit)) # }