Learn R Programming

FAOSTAT (version 1.6)

sparsityHeatMap: Function for examine sparsity

Description

The function plots the availability of a specific variable over time by country and are grouped by the average value of the indicator.

Usage

sparsityHeatMap(data, country, year, var, group, ncol)

Arguments

data
The data frame containing the data.
country
The column name containing the country name.
year
The columne name containing the time information.
var
The variable to be examined.
group
The colomun name which the data should be grouped, if missing quantile of the variable is used.
ncol
The number of column for the resulting plot