Description Usage Arguments Author(s) Examples
View source: R/ggheatmap_cor2.R
Correlation heatmap of two matrix
1 2 3 4 5 6 7 8 | ggheatmap_cor2(
data1,
data2,
clust = TRUE,
both = FALSE,
method = "spearman",
limits = c(-1, 1)
)
|
data1 |
the numeric matrix |
data2 |
the numeric matrix |
clust |
logic value to indicate whether cluster or not |
both |
Logic value to show both the coefficient and the p values |
method |
the method of correlation one the "pearson" and "spearman" |
limits |
the color range, default value is c(-1, 1) |
Zhonghui Gai
1 | ggheatmap_cor2(iris[, -5], iris[, -5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.