Description Usage Arguments Value Examples
This function performs the difference test and generates a ggplot object representing the results.
1 2 3 | diff_test_ggPlot(netSampleStatSet, labels, sort = "alpha",
p.threshold = 0.05, p.adjust = "BH", hide.non.sig = F,
non.parametric = F)
|
netSampleStatSet |
Input |
labels |
ggplot2 labs object. Labels for the plot |
sort |
one of "alpha", "mean", "median". "alpha" sorts in alpha numeric order, while mean and median sort by decreasing values. |
p.threshold |
Numeric. Threshold by which to highlight results. Defaults to .05 |
p.adjust |
character string for requested multiple comparisons adjustment. Defaults to Benjamani-Hochberg |
hide.non.sig |
Logical. If true, non significant (as defined by p.threshold) are not plotted. |
non.parametric |
Logical. if true, test is performed using Wilcox test. If false, t-test. Defaults to false. |
A ggplot object
1 2 3 4 5 6 | data(GroupA)
GroupA_Net = as_NetSample(GroupA, 1:20, node.variables = list(community = c(rep(1, 10), rep(2,10))),
sample.variables = list(group = c(rep(1, 10), rep(2,10))))
Jackknife_GroupA_Net = net_apply(GroupA_Net, node_jackknife)
GlobEff_GroupA_Net = net_stat_apply(Jackknife_GroupA_Net, global_efficiency)
diff_test_ggPlot(GlobEff_GroupA_Net)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.