plot_global | R Documentation |
Create a faceted line plot of global graph measures across a range of graph
densities, calculated from a list of brainGraphList
objects. This
requires that the variables of interest are graph-level attributes of the
input graphs.
plot_global(g.list, xvar = c("density", "threshold"), vline = NULL,
level.names = "default", exclude = NULL, perms = NULL,
alt = "two.sided")
g.list |
List of |
xvar |
A character string indicating whether the variable of interest is “density” or “threshold” (e.g. with DTI data) |
vline |
Numeric of length 1 specifying the x-intercept if you would like
to plot a vertical dashed line (e.g., if there is a particular density of
interest). Default: |
level.names |
Character vector of variable names, which are displayed as
facet labels. If you do not want to change them, specify |
exclude |
Character vector of variables to exclude. Default: |
perms |
A |
alt |
Character vector of alternative hypotheses; required if perms is provided, but defaults to “two.sided” for all variables |
You can choose to insert a dashed vertical line at a specific
density/threshold of interest, rename the variable levels (which become the
facet titles), exclude variables, and include a brainGraph_permute
object of permutation data to add asterisks indicating significant group
differences.
Either a trellis
or ggplot
object
Christopher G. Watson, cgwatson@bu.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.