View source: R/Visualization_check.R
exprCorHeatmap | R Documentation |
plot a heatmap of correlation between samples
exprCorHeatmap(
expr,
group_list,
filename = NA,
top = NA,
main = "Correlation by all genes",
palette = RColorBrewer::brewer.pal(3, "Set2")[1:2],
anno_title = "Group",
annotation_col = ac_(expr, group_list),
width = ncol(expr) * 0.3 + 2.2,
height = ncol(expr) * 0.3 + 2.2,
...,
heatmapParam = list(show_rownames = F)
)
expr |
a expression matrix |
group_list |
a character vector order by samples |
filename |
file name you want to save plot |
top |
if not NA, only keep top of genes by mad |
main |
plot title |
palette |
annotation palette |
anno_title |
annotation title |
annotation_col |
annotation dataframe |
width |
width of plot |
height |
height of plot |
... |
more parameters in |
heatmapParam |
more parameters in |
Use cor
to get correlation of samples. Can filter genes by 'top'.
'top' means the top mad (by mad
) of expression matrix.
a heatmap plot or a file
exprCorHeatmap(expr,group_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.