- data
Data frame containing a person-to-person query.
- hrvar
String containing the label for the HR attribute.
- display
String determining what output to return. Valid values
include:
"hrvar"
(default): compute analysis or visuals without computing
communities.
"louvain"
: compute analysis or visuals with community detection, using
the Louvain algorithm.
"leiden"
: compute analysis or visuals with community detection, using
the Leiden algorithm. This requires all the pre-requisites of the
leiden package installed, which includes Python and reticulate.
- return
String specifying what output to return. This must be one of the
following strings:
'plot'
(default)
'sankey'
'table'
'data'
'describe'
'network'
See Value
for more information.
- path
File path for saving the PDF output. Defaults to a timestamped
path based on current parameters.
- desc_hrvar
Character vector of length 3 containing the HR attributes
to use when returning the "describe"
output. See network_describe()
.
- bg_fill
String to specify background fill colour.
- font_col
String to specify font and link colour.
- legend_pos
String to specify position of legend. Defaults to
"bottom"
. See ggplot2::theme()
. This is applicable for both the
'ggraph' and the fast plotting method. Valid inputs include:
"bottom"
"top"
"left"
-"right"
- palette
Function for generating 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.
- res
Resolution parameter to be passed to leiden::leiden()
. Defaults
to 0.5.
- seed
Seed for the random number generator passed to either
set.seed()
when the Louvain algorithm is used, or leiden::leiden()
when
the Leiden algorithm is used, to ensure consistency. Only applicable when
display
is set to "louvain"
or "leiden"
.
- algorithm
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.
- size_threshold
Numeric value representing the maximum number of edges
before network_leiden()
switches to use a more efficient, but less
elegant plotting method (native igraph). Defaults to 5000. Set as 0
to
coerce to a fast plotting method every time, and Inf
to always use the
default plotting method (with 'ggraph').
- weight
String to specify which column to use as weights for the
network. Defaults to "StrongTieScore
. To create a graph without weights,
supply NULL
to this argument.