Learn R Programming

MiMIR (version 1.5)

plot_na_heatmap: plot_na_heatmap

Description

Function plotting information about missing & zero values on the indicated matrix.

Usage

plot_na_heatmap(dat)

Value

Plot with a central heatmap and two histogram on the sides

Arguments

dat

The matrix or data.frame

Details

This heatmap indicates the available values in grey and missing or zeros in white. On the sides two bar plots on the sides, one showing the missingn or zero values per row and another to show the missing or zeroes per column.

Examples

Run this code
library(graphics)
library(MiMIR)

#load the metabolites dataset
metabolic_measures <- synthetic_metabolic_dataset
#Plot the missing values in the metabolomics matrix
plot_na_heatmap(metabolic_measures)

Run the code above in your browser using DataLab