plot_comparison_stats {GWENA} | R Documentation |
Plot heatmap of p values for the module comparison statistics evaluated through the permutation test.
plot_comparison_stats( comparison_pvalues, pvalue_th = 0.05, low_color = "#031643", pvalue_th_color = "#A0A3D3", unsignificant_color = "#FFFFFF" )
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β ) |
A ggplot object representing a heatmap of the comparison statistics for each module
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)