plotind: Plot indicator

Description Usage Arguments Author(s) Examples

Description

A plot of gaugeIndicator is printed.

Usage

1
2
3
plotind(x, labs = list(x = "layer", 
    y = unique(as.character(x$metric)), 
    fill = "class"))

Arguments

x

tibble. Data set of indicators such as that produced by gaugeIndicator.

labs

Further arguments in labs.

Author(s)

Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [aut], Maria C. Londono [aut]

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Warnings from GDAL/PROJ are suppressed.

## RasterBrick of structural Essential Biodiversity Variables
## covering the extent of a location in the northern Amazon basin
## (Colombia) is imported:
path. <- system.file('amazon.grd',package = 'ecochange')
amazon <- suppressWarnings(brick(path.))

## Changes in layers of tree-canopy cover (TC) in the 'amazon'
## brick are computed:
suppressWarnings(
def <- echanges(amazon, eco = 'TC',
                change = 'lossyear',
                eco_range = c(1,80),
                get_unaffected = TRUE,
                binary_output = FALSE,
                mc.cores = 2)
)

## Function 'gaugeIndicator' is used to compute ecosystem areas
## (default metric of the function):
am_areas <- gaugeIndicator(def,
                         mc.cores = 2)

## Plot of the output from 'gaugeIndicator'
plotind(am_areas)

ecochange documentation built on Sept. 8, 2021, 5:09 p.m.