View source: R/check_batch_effects.R
plot_heatmap | R Documentation |
Plot heatmap with predefined color scheme based on type.
plot_heatmap(matrix, type, title = NULL)
matrix |
Matrix. Values to be plotted. |
type |
Character. Type of heatmap ('pval' for P-values and 'r2' for absolute adjusted r^2). |
title |
Character. Title of the plot. |
Heatmap as Heatmap-class
object
data("se.gene")
res.pca = calculate_mds_pca(se = se.gene,
method = "pca")
col.test = c("Age.of.patient",
"Body.surface.area",
"Duration.of.psoriasis",
"Induration",
"Overall.erythema",
"Scaling",
"Sex",
"scan.date")
res = check_batch_effects(se = se.gene,
res.pca = res.pca,
col.test = col.test)
# plot P-values
plot_heatmap(matrix = res$pval,
type = "pval")
# plot absolute adjusted r^2
plot_heatmap(matrix = res$r2,
type = "r2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.