How to Visualize Missing Data in R using a Heatmap

How to Visualize Missing Data in R using a Heatmap

Missing values are generally represented by NA in a data frame. Here, we will describe how to visualize missing data in R using an interactive heatmap.

Contents:

Prerequisites

Install the heatmaply R package: install.packages("heatmaply").

Show missing values in R

library(heatmaply)
heatmaply_na(
airquality[1:30, ],
showticklabels = c(TRUE, FALSE)
)

Version: Français