CentralityAndClusteringPlots {modnets} | R Documentation |
Plots for node centrality values or clustering coefficients
Description
Mimics the qgraph::centralityPlot
and
qgraph::clusteringPlot
functions. The
purpose of revising this function was to make it compatible with outputs from
the modnets
package.
Usage
centPlot(
Wmats,
scale = c("z-scores", "raw", "raw0", "relative"),
which.net = "temporal",
include = "all",
labels = NULL,
orderBy = NULL,
decreasing = FALSE,
plot = TRUE,
verbose = TRUE,
weighted = TRUE,
signed = TRUE
)
clustPlot(
Wmats,
scale = c("z-scores", "raw", "raw0", "relative"),
include = "all",
labels = NULL,
orderBy = NULL,
decreasing = FALSE,
plot = TRUE,
signed = TRUE,
verbose = TRUE
)
plotCentrality(
Wmats,
which.net = "temporal",
scale = TRUE,
labels = NULL,
plot = TRUE,
centrality = "all",
clustering = "Zhang"
)
Arguments
Wmats |
Output from one of the primary |
scale |
If |
which.net |
Only applies to SUR networks, as well as those fit with the
|
include |
Character vector of which centrality measures to plot.
|
labels |
Character vector listing the node names. If |
orderBy |
Character string specifying which measure to order values by. |
decreasing |
Logical. Only relevant if |
plot |
Logical. Determines whether to plot the output or not. |
verbose |
Logical. Determines whether to return a message about the plot (messages are only shown if values are scaled). |
weighted |
See |
signed |
See |
centrality |
Character vector of centrality measures to plot. Defaults
to |
clustering |
Character vector of clustering measures to plot. Defaults
to |
Details
The only utility of the plotCentrality
function is as an easy
way to combine centrality measures and clustering coefficients into a single
plot.
Value
A plot of centrality values or clustering coefficients for several measures.
See Also
centTable, clustTable, centAuto,
clustAuto, qgraph::centralityPlot,
qgraph::clusteringPlot
Examples
x <- fitNetwork(ggmDat)
centPlot(x)
clustPlot(x)
plotCentrality(x)