Description Usage Arguments Value Author(s) References See Also Examples
Creates a ggraph object for each available centrality function. A data frame with the words and all centralities indexes is also included. The combinations of all word pairs are computed for all concecutive pair of variables and the centrality of each word is calculated according to all available centrality functions. The wordreport list gives the opportunity to the researcher to compare centralities indexes for the words.
1 2 3 4 5 | get.all.graphs(
wordvars,
data.df,
iscircled = FALSE,
verbose = FALSE)
|
wordvars |
The vector containing the names of the variables |
data.df |
The data frame where the variables belong. |
iscircled |
Should take also the combination between last and first variable (var_n - var1)? Default is FALSE. |
verbose |
Should show also warning messages? The default is FALSE. |
A list of objects "graphs" and "wordreport" which are themselves also lists.
graphs |
The graphs list contains the graph data for each one centrality index. |
wordreport |
The wordreport list contains all centrality indexes for every different word that participates in a combination among wordvars variable vector. |
Epaminondas Diamantopoulos
http://www.sthda.com/english/articles/33-social-network-analysis/136-network-analysis-and-manipulation-using-r/
get.graph.1.n.group.centrality.with.function
1 2 3 4 5 6 7 8 9 10 11 | # It is a time consuming function...
allgraphs = get.all.graphs(c("diet1stword", "diet2ndword", "diet3rdword"),
freeassociationdata)
# Get insight in the relation of the centralities for your word set...
cor(allgraphs$wordreport[2:7])
# Plot a particular graph by giving the command
graph_plot(allgraphs$graphs$centrality_closeness)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.