plot.Indicator {ecochange} | R Documentation |
Visualize Indicator objects
Description
Plots for objects from gaugeIndicator
are produced.
Usage
## S3 method for class 'Indicator'
plot(x, y,
...)
Arguments
x |
|
y |
|
... |
Graphical arguments:
|
Author(s)
Wilson Lara Henao <wilarhen@gmail.com> [aut, cre], Victor Gutierrez-Velez [aut], Ivan Gonzalez [ctb], Maria C. Londono [ctb]
Examples
## 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 <- brick(path.)
## Changes in layers of tree-canopy cover (TC) are computed by
## processing the 'amazon' brick:
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 = 'area_ha'):
am_areas <- gaugeIndicator(def,
mc.cores = 2)
## A plot of the 'am_areas' object
plot.Indicator(am_areas,
cex = 1.5,
xlab = 'Year',
ylab = 'Area (ha)',
main = 'Ecosystem changes',
sub = 'Northern amazon',
fill = 'Forest cover (%)')
[Package ecochange version 2.9.3.2 Index]