plot_comparison_stats: Heatmap of comparison statistics

Description Usage Arguments Value Examples

View source: R/comparison.R

Description

Plot heatmap of p values for the module comparison statistics evaluated through the permutation test.

Usage

1
2
3
4
5
6
7
plot_comparison_stats(
  comparison_pvalues,
  pvalue_th = 0.05,
  low_color = "#031643",
  pvalue_th_color = "#A0A3D3",
  unsignificant_color = "#FFFFFF"
)

Arguments

comparison_pvalues

matrix or data.frame, table containing the p values for the statistics on each module

pvalue_th

decimal, threshold of pvalue below which statistics are considered as significant

low_color, pvalue_th_color, unsignificant_color

string, color to use as lower, middle, and higher end of the legend. Can either be the color name or hexadecimal code (e.g.: “red” or “#FF1234” )

Value

A ggplot object representing a heatmap of the comparison statistics for each module

Examples

1
2
3
4
5
6
7
8
df <- data.frame(avg.weight = abs(rnorm(4, 0.1, 0.1)),
                 coherence = abs(rnorm(4, 0.1, 0.1)),
                 cor.cor = abs(rnorm(4, 0.1, 0.1)),
                 cor.degree = abs(rnorm(4, 0.1, 0.1)),
                 cor.contrib = abs(rnorm(4, 0.1, 0.1)),
                 avg.cor = abs(rnorm(4, 0.1, 0.1)),
                 avg.contrib = abs(rnorm(4, 0.1, 0.1)))
plot_comparison_stats(df)

GWENA documentation built on Feb. 17, 2021, 2:01 a.m.