Learn R Programming

FAOSTAT (version 1.6)

dataDensity: A plot to show the availability of the data

Description

This function is based on ggmissing of the ggplot2 package with minor modification.

Usage

dataDensity(data, order = TRUE, threshold = 0.5)

Arguments

data
The data frame to examine the sparsity
order
Whether the plot should reorder the data by the sparsity
threshold
The level where the horizontal line to be added.