Learn R Programming

EGAnet (version 1.2.3)

plots: S3Methods for Plotting

Description

Plots for EGAnet objects

Usage

# S3 method for bootEGA
plot(x, title = "",
plot.args = list(), produce = TRUE, ...)

# S3 method for CFA plot(x, layout = "spring", vsize = 6, ...)

# S3 method for dynEGA plot(x, title = "", plot.args = list(), produce = TRUE, ...)

# S3 method for dynEGA.Groups plot(x, ncol, nrow, title = "", plot.args = list(), produce = TRUE, ...)

# S3 method for dynEGA.Individuals plot(x, title = "", id = NULL, plot.args = list(), produce = TRUE, ...)

# S3 method for EGA plot(x, title = "", plot.args = list(), produce = TRUE, ...)

Value

Plots of EGAnet object

Arguments

x

Object from EGAnet package

title

Character. Title of the plot. Defaults to ""

plot.args

List. A list of additional arguments for the network plot. See ggnet2 for full list of arguments:

  • vsize Size of the nodes. Defaults to 6.

  • label.size Size of the labels. Defaults to 5.

  • alpha The level of transparency of the nodes, which might be a single value or a vector of values. Defaults to 0.7.

  • edge.alpha The level of transparency of the edges, which might be a single value or a vector of values. Defaults to 0.4.

  • legend.names A vector with names for each dimension

  • color.palette The color palette for the nodes. For custom colors, enter HEX codes for each dimension in a vector. See color_palette_EGA for more details and examples

produce

Boolean. This argument is used internally. Should plot be produced? Defaults to TRUE

...

Arguments passed on to

  • semPaths Functions: CFA

vsize

Numeric. Size of vertices in CFA plots. Defaults to 6

layout

Character. Layout of plot (see semPaths). Defaults to "spring"

ncol

Numeric. Number of columns

nrow

Numeric. Number of rows

id

Numeric. An integer or character indicating the ID of the individual to plot

Author

Hudson Golino <hfg9s at virginia.edu> and Alexander P. Christensen <alexpaulchristensen@gmail.com>