Learn R Programming

BGGM (version 1.0.0)

plot_adjacency: Plot Adjacency Matrix

Description

Plot Adjacency Matrix

Usage

plot_adjacency(
  x,
  layout = "circle",
  node_labels = NULL,
  node_labels_color = "black",
  node_groups = NULL,
  node_outer_size = 12,
  node_inner_size = 11,
  alpha = 0.5,
  txt_size = 8,
  ...
)

Arguments

x

adjacency matrix

layout

network layout (gplot.layout)

node_labels

node labels

node_labels_color

node labels color

node_groups

node group indicator

node_outer_size

node border size

node_inner_size

node size

alpha

edge transparency

txt_size

node text size

...

additional arguments (ggnet2)

Value

object of class ggplot

Examples

Run this code
# NOT RUN {
# data
Y <- rsa[,-ncol(rsa)]

# fit model
fit_explore <- explore(Y, iter = 1000)

# select the graph (edge set E)
E <- select(fit_explore)

plot_adjacency(E$Adj_10, node_groups = BGGM:::rsa_labels)
# }

Run the code above in your browser using DataLab