plot_comparison_stats {GWENA} | R Documentation

## Heatmap of comparison statistics

### Description

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

### Usage

    plot_comparison_stats(
      comparison_pvalues,
      pvalue_th = 0.05,
      low_color = "#031643",
      pvalue_th_color = "#A0A3D3",
      unsignificant_color = "#FFFFFF",
      text_angle = 90
    )

### 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” )
`text_angle` | integer, angle in [0,360] of the x axis labels.

### Value

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

### Examples

    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)

[Package GWENA version 1.4.0 Index]