Description Usage Arguments Value Author(s) Examples
View source: R/ggheatmap_cor1.R
Correlation heatmap of one data frame, Only the lower triangle is shown
1 2 3 4 5 6 7 | ggheatmap_cor1(
data,
clust = TRUE,
both = FALSE,
method = "spearman",
limits = c(-1, 1)
)
|
data |
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) |
a ggplot object
Zhonghui Gai
1 | ggheatmap_cor1(data = iris[, -5])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.