corr_heatmap {TOmicsVis} | R Documentation |
Correlation Heatmap for samples/groups based on Pearson algorithm.
Description
Correlation Heatmap for samples/groups based on Pearson algorithm.
Usage
corr_heatmap(
data,
corr_method = "pearson",
cell_shape = "square",
fill_type = "full",
lable_size = 3,
axis_angle = 45,
axis_size = 12,
lable_digits = 3,
color_low = "blue",
color_mid = "white",
color_high = "red",
outline_color = "white",
ggTheme = "theme_light"
)
Arguments
data |
Dataframe: All genes in all samples expression dataframe of RNA-Seq (1st-col: Genes, 2nd-col~: Samples). |
corr_method |
Character: correlation method. Default: "pearson", options: "pearson", "spearman", "kendall". |
cell_shape |
Character: heatmap cell shape. Default: "square", options: "circle", "square". |
fill_type |
Character: heatmap fill type. Default: "full", options: "upper", "low", "full". |
lable_size |
Numeric: heatmap label size. Default: 3, min: 0. |
axis_angle |
Numeric: axis rotate angle. Default: 45, min: 0, max: 360. |
axis_size |
Numberic: axis font size. Default: 12, min: 0. |
lable_digits |
Numeric: heatmap label digits. Default: 3, min: 0, max: 3. |
color_low |
Character: low value color name or hex value. Default: "blue". |
color_mid |
Character: middle value color name or hex value. Default: "white". |
color_high |
Character: high value color name or hex value. Default: "red". |
outline_color |
Character: outline color name or hex value. Default: "white". |
ggTheme |
Character: ggplot2 theme. Default: "theme_light", options: "theme_default", "theme_bw", "theme_gray", "theme_light", "theme_linedraw", "theme_dark", "theme_minimal", "theme_classic", "theme_void". |
Value
Plot: heatmap plot filled with Pearson correlation values and P values.
Author(s)
benben-miao
Examples
# 1. Library TOmicsVis package
library(TOmicsVis)
# 2. Use example dataset gene_exp
data(gene_expression)
head(gene_expression)
# 3. Default parameters
corr_heatmap(gene_expression)
# 4. Set color_low = "#008800"
corr_heatmap(gene_expression, color_low = "#008800")
# 5. Set cell_shape = "circle"
corr_heatmap(gene_expression, cell_shape = "circle")