plot_edges: Plotting method for glaxo objects

Description Usage Arguments Value Examples

View source: R/plot_edges.R

Description

Plotting method for glaxo objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
plot_edges(
  object,
  layout = "fruchtermanreingold",
  node_labels = NULL,
  node_label_size = 5,
  node_size = 11,
  node_color = "white",
  node_border_size = 12,
  node_border_color = "black",
  edge_alpha = 1,
  ...
)

Arguments

object

An object of type glaxo

layout

A layout as specified in ggnetwork

node_labels

Labels for nodes. Optional.

node_label_size

Size of node labels. Default is 5.

node_size

Size of nodes. Default is 11.

node_color

Color of nodes. Default is "white".

node_border_size

Size of node borders. Default is 12.

node_border_color

Color of node borders. Default is "black".

edge_alpha

Opaqueness of edges. Default is 1.

...

Additional arguments to be passed to ggnetwork

Value

An object of class ggplot

Examples

1
2
3
4
5
6
data("bfi", package = "psych")
Y <- subset(bfi, select = -c(gender, education, age))
Y <- na.omit(Y)

model <- glaxo(Y, progress = FALSE)
plot_edges(model)

josue-rodriguez/glaxo documentation built on Dec. 21, 2021, 2:22 a.m.