- data
Data frame containing a person-to-person query.
- hrvar
String containing the label for the HR attribute.
- return
A different output is returned depending on the value passed to the return
argument:
'plot'
(default)
'plot-pdf'
'sankey'
'table'
'data'
'network'
- centrality
string to determines which centrality measure is used to
scale the size of the nodes. All centrality measures are automatically
calculated when it is set to one of the below values, and reflected in the
'network'
and 'data'
outputs.
Measures include:
betweenness
closeness
degree
eigenvector
pagerank
When centrality
is set to NULL, no centrality is calculated in the outputs
and all the nodes would have the same size.
- community
String determining which community detection algorithms to
apply. Valid values include:
These values map to the community detection algorithms offered by igraph
.
For instance, "leiden"
is based on igraph::cluster_leiden()
. Please see
the bottom of https://igraph.org/r/html/1.3.0/cluster_leiden.html on all
applications and parameters of these algorithms.
.
- weight
String to specify which column to use as weights for the
network. To create a graph without weights, supply NULL
to this argument.
- comm_args
list containing the arguments to be passed through to
igraph's clustering algorithms. Arguments must be named. See examples
section on how to supply arguments in a named list.
- layout
String to specify the node placement algorithm to be used.
Defaults to "mds"
for the deterministic multi-dimensional scaling of
nodes. See
https://rdrr.io/cran/ggraph/man/layout_tbl_graph_igraph.html for a full
list of options.
- path
File path for saving the PDF output. Defaults to a timestamped
path based on current parameters.
- style
String to specify which plotting style to use for the network
plot. Valid values include:
- bg_fill
String to specify background fill colour.
- font_col
String to specify font colour.
- legend_pos
String to specify position of legend. Defaults to
"right"
. See ggplot2::theme()
. This is applicable for both the
'ggraph' and the fast plotting method. Valid inputs include:
"bottom"
"top"
"left"
-"right"
- palette
String specifying the function to generate a colour palette
with a single argument n
. Uses "rainbow"
by default.
- node_alpha
A numeric value between 0 and 1 to specify the transparency
of the nodes. Defaults to 0.7.
- edge_alpha
A numeric value between 0 and 1 to specify the transparency
of the edges (only for 'ggraph' mode). Defaults to 1.
- edge_col
String to specify edge link colour.
- node_sizes
Numeric vector of length two to specify the range of node
sizes to rescale to, when centrality
is set to a non-null value.
- seed
Seed for the random number generator passed to either
set.seed()
when the louvain or leiden community detection algorithm is
used, to ensure consistency. Only applicable when community
is set to
one of the valid non-null values.