function_get_all_graphs: Creates one ggraph object for each available centrality...

Description Usage Arguments Value Author(s) References See Also Examples

Description

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.

Usage

1
2
3
4
5
get.all.graphs(
          wordvars,
          data.df,
          iscircled = FALSE,
          verbose = FALSE)

Arguments

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.

Value

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.

Author(s)

Epaminondas Diamantopoulos

References

http://www.sthda.com/english/articles/33-social-network-analysis/136-network-analysis-and-manipulation-using-r/

See Also

get.graph.1.n.group.centrality.with.function

Examples

 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)

wordgraph documentation built on July 1, 2020, 10:01 p.m.