diff_test_ggPlot: Difference Test Plots

Description Usage Arguments Value Examples

View source: R/net_apply.R

Description

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

Usage

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

Arguments

netSampleStatSet

Input NetSampleStatSet

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.

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)
diff_test_ggPlot(GlobEff_GroupA_Net)

trh3/netjack documentation built on Aug. 21, 2019, 4:04 a.m.