plotWeights: Barplot showing Weights per Indicator, trophic Group, BSunit...

View source: R/plotWeights.R

plotWeightsR Documentation

Barplot showing Weights per Indicator, trophic Group, BSunit or ICunit.

Description

Plot method for objects of class niValue which creates a horizontal barplot.

Usage

plotWeights(x = NULL, group = "indic", ...)

Arguments

x

an niValue object.

group

character. Should summary be
per indicator (group = "indic", default),
per trophic group (group = "troph"),
per BSunit (group = "BSunit"), or
per ICunit (group = "ICunit")?

...

further arguments controlling the appearance of the plot, some passed further to par:
lwd, cex, cex.axis, main, cex.main,
barnum - maximum number of bars (default = 35),
barcol - color for the bars (defaults to gray(0.75)),
keys - whether key indicators should be shown in a separate color (T, default),
keycol color for key indicator bars.

Author(s)

Bård Pedersen

See Also

calculateIndex, niValue, niSeries, and niOutput for cumputation and generation of niValue, niSeries, and niOutput objects.

Examples

## Not run: 

plotWeights(calculateIndex(x = themeData,
                           nsim = 1000,
                           fids = FALSE,
                           tgroups = FALSE,
                           keys = "ignore",
                           w = 0,
                           awbs = TRUE,
                           awBSunit = "Skog")$E$`1990`,
             group = "ICunit",
             barcol = 3)

## End(Not run)


NINAnor/NIcalc documentation built on Oct. 26, 2023, 9:37 a.m.