Description Usage Arguments Value Examples
Plot heatmap of p values for the module comparison statistics evaluated through the permutation test.
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"
)
|
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.