EGAnet
plotsOrganizes EGA plots for comparison. Ensures that nodes are placed in the same layout to maximize comparison. Community memberships are also homogenized across EGA outputs to enhance interpretation
compare.EGA.plots(
...,
input_list = NULL,
base_plot = 1,
labels,
rows,
columns,
plot.type = c("GGally", "qgraph"),
plot.args = list()
)
Visual comparison of EGAnet
objects
EGAnet
objects
List.
Bypasses ...
argument in favor of using a list
as an input
Numeric.
Plot to be used as the base for the configuration of the networks.
Uses the number of the order in which the plots are input.
Defaults to 1
or the first plot
Character vector.
Labels for each EGAnet
object
Numeric. Number of rows to spread plots across
Numeric. Number of columns to spread plots down
Character.
Plot system to use.
Current options are qgraph
and GGally
.
Defaults to "GGally"
List.
A list of additional arguments for the network plot.
For plot.type = "qgraph"
:
vsize
Size of the nodes. Defaults to 6.
For plot.type = "GGally"
(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
Alexander Christensen <alexpaulchristensen@gmail.com>
# obtain SAPA items
items <- psychTools::spi[,c(11:20)]
Run the code above in your browser using DataLab