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





No Comments

Give a comment

Want to post an issue with R? If yes, please make sure you have read this: How to Include Reproducible R Script Examples in Datanovia Comments