plot.Indicator: Visualize Indicator objects

plot.IndicatorR Documentation

Visualize Indicator objects


Plots for objects from gaugeIndicator are produced.


## S3 method for class 'Indicator'
plot(x, y, 



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


character. A color palette. If this is missing or the suggest viridis is not installed then terrain.colors is implemented.


Graphical arguments:

  • type: what type of plot should be drawn: "s" for stacked bar plots (default), or "b" for box plots,

  • cex: adjustment of sizes for most text values,

  • xlab, and ylab: titles for the x and y axes,

  • main: a text of the main title,

  • sub: a text for the sub title,

  • labels: a string or numeric sequence for the x-axis labels,

  • fill: a text for the legend title


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


## 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
               cex = 1.5,
               xlab = 'Year',
               ylab = 'Area (ha)',
               main = 'Ecosystem changes',
               sub = 'Northern amazon',
               fill = 'Forest cover (%)')

ecochange documentation built on March 7, 2023, 7:16 p.m.