Description Usage Arguments Examples
View source: R/lipidome_comparison_visualization.R
'matrix_heatmap' displays values of a matrix in a heatmap
1 | matrix_heatmap(input_df, title = "", interactive = FALSE, out_path = "none")
|
input_df |
data frame or matrix. For exaple correlation or matrix of ratios or differences. |
title |
string. Main title of the plot. Default: no title |
interactive |
logical. Print heatmap to device (FALSE, default) or open interactive heatmap in browser (TRUE). |
out_path |
string. Path to save heatmap to png. If out_path is empty the heatmap is printed to the device. |
1 2 3 4 5 6 7 8 9 | iris_cor <- cor(iris[,-5], method = "spearman")
matrix_heatmap(iris_cor)
## Not run:
dir.create(paste(getwd(), "/examples", sep = ""), showWarnings = FALSE)
dir <- paste(getwd(), "/examples/iris", sep = "")
matrix_heatmap(iris_cor, interactive = TRUE)
matrix_heatmap(iris_cor, out_path = dir)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.