summary_map: Quantitative summary of a unique categorical raster

Description Usage Arguments Value Examples

View source: R/generalfunctions.R

Description

This function presents a summary with the pixel quantity of each category present in a categorical raster.

Usage

1

Arguments

path

The path for the raster to be analysed, if path is a multilayer raster only the first RasterLayer will be analysed.

Value

A table containing in columns the pixel counts for each pixel value

Examples

1
2
3
4
5
url <- "https://zenodo.org/record/3685230/files/SaoLourencoBasin.rda?download=1"
temp <- tempfile()
download.file(url, temp, mode = "wb") # downloading the SaoLourencoBasin dataset
load(temp)
summary_map(SaoLourencoBasin[[1]])

OpenLand documentation built on Nov. 2, 2021, 9:13 a.m.