View source: R/compare.EGA.plots.R
compare.EGA.plots | R Documentation |
EGAnet
plotsOrganizes EGA plots for comparison. Ensures that nodes are placed in the same layout to maximize comparison
compare.EGA.plots(
...,
input.list = NULL,
base = 1,
labels = NULL,
rows = NULL,
columns = NULL,
plot.all = TRUE
)
... |
Handles multiple arguments:
|
input.list |
List.
Bypasses |
base |
Numeric (length = 1).
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 |
labels |
Character (same length as input).
Labels for each |
rows |
Numeric (length = 1). Number of rows to spread plots across |
columns |
Numeric (length = 1). Number of columns to spread plots down |
plot.all |
Boolean (length = 1).
Whether plot should be produced or just output.
Defaults to |
Visual comparison of EGAnet
objects
Alexander Christensen <alexpaulchristensen@gmail.com>
plot.EGAnet
for plot usage in EGAnet
# Obtain WMT-2 data
wmt <- wmt2[,7:24]
# Draw random samples of 300 cases
sample1 <- wmt[sample(1:nrow(wmt), 300),]
sample2 <- wmt[sample(1:nrow(wmt), 300),]
# Estimate EGAs
ega1 <- EGA(sample1)
ega2 <- EGA(sample2)
# Compare EGAs via plot
compare.EGA.plots(
ega1, ega2,
base = 1, # use "ega1" as base for comparison
labels = c("Sample 1", "Sample 2"),
rows = 1, columns = 2
)
# Change layout to circle plots
compare.EGA.plots(
ega1, ega2,
labels = c("Sample 1", "Sample 2"),
mode = "circle"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.