res.plot: Plot resilience components

Description Usage Arguments Details Value Author(s) Examples

View source: R/res.plot.R

Description

The function creates box plots of the resilience components resistance, recovery, resilience and relative resilience as produced by res.comp for years identified as negative pointer years, as well as for selected years.

Usage

1
res.plot(list.name, select.yr = NULL, multi.panel = TRUE)

Arguments

list.name

a list as produced by res.comp.

select.yr

an integer specifying the (pointer) years to be plotted (e.g., c(1948, 1992)). Defaults to all years defined as negative pointer year with nb.series >= 5 in the list component out.select.

multi.panel

a logical specifying whether box plots should be plotted in a 2x2 grid. Defaults to TRUE.

Details

The function makes a box plot for each resilience component showing the full range of variation for individual trees in negative pointer years (or selected years). Box plots are only created for years with nb.series >= 5, as this value represents the number of statistics that a box plot represents in its' simplest form.

Value

Four box plots.

Author(s)

Marieke van der Maaten-Theunissen and Ernst van der Maaten.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Plot resilience components for all defined pointer years
# note: pointer years with < 5 series (here 1882) are not displayed (warning)
data(s033)
res <- res.comp(s033, nb.yrs = 4, res.thresh.neg = 40, series.thresh = 75)
res.plot(res, select.yr = NULL, multi.panel = TRUE)

## Plot resilience components for selected years
# note: inclusion of non-pointer years (here 2002) results in a warning
data(s033)
res <- res.comp(s033, nb.yrs = 4, res.thresh.neg = 40, series.thresh = 75)
res.plot(res, select.yr = c(1948, 1992, 2002), multi.panel = TRUE)

pointRes documentation built on May 1, 2019, 8:45 p.m.