group_test_ggPlot: Group Test Plots

Description Usage Arguments Value Examples

Description

This function performs the group test and generates a ggplot object representing the results.

Usage

1
2
3
group_test_ggPlot(netSampleStatSet, grouping.variable, labels,
  sort = "alpha", p.threshold = 0.05, p.adjust = "BH",
  hide.non.sig = F, non.parametric = F)

Arguments

netSampleStatSet

Input NetSampleStatSet

grouping.variable

character name of sample level grouping variable

labels

ggplot2 labs object. Labels for the plot

sort

one of "alpha", "mag"; "alpha" sorts in alpha numeric order, while "mag" sorts in order of decreasing effect size

p.threshold

Numeric. Threshold by which to highlight results. Defaults to .05

p.adjust

character string for requested multiple comparisons adjustment. Defaults to none.

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.

Value

A ggplot object

Examples

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)
group_test_ggPlot(GlobEff_GroupA_Net, "group")

netjack documentation built on July 8, 2019, 1:02 a.m.