matrix_heatmap: Matrix heatmap

Description Usage Arguments Examples

View source: R/lipidome_comparison_visualization.R

Description

'matrix_heatmap' displays values of a matrix in a heatmap

Usage

1
matrix_heatmap(input_df, title = "", interactive = FALSE, out_path = "none")

Arguments

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.

Examples

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)

lisaschneider0509/lipidomeComparisonR documentation built on Aug. 12, 2020, 12:52 a.m.