
Create a faceted line plot of global graph measures across a range of graph
densities. Given a "tidied" data.table
, you can choose to insert a
dashed vertical line at a density of interest, rename the variable levels
(which become the facet titles), exclude certain variables, and include a
data.table
of permutation data to add asterisks indicating signficant
group differences.
plot_global(tidy.dt, xvar = c("density", "threshold"), vline = NULL,
level.names = NULL, exclude = NULL, perms = NULL, g = NULL,
alt = NULL)
A data.table
that has been "tidied", containing
global graph measures for all densities and subject groups
A character string indicating whether the variable of interest is "density" or "threshold" (e.g. with DTI data)
Numeric; required to plot a dashed vertical line (default: NULL)
Character vector of facet label names, if you wish to change them (default: NULL)
Character vector of variables to exclude (default: NULL)
A data.table
of permutation group differences
(default: NULL)
A list of lists of igraph
graph objects; required if
perms is provided (default: NULL)
Character vector of alternative hypotheses; required if perms is provided, but defaults to "two.sided" for all variables
A ggplot
object