plotNORelease: Plot number of releases.

View source: R/trader.R

plotNOReleaseR Documentation

Plot number of releases.

Description

Barplot number of releases according given criteria.

Usage

plotNORelease(data, inyears, in2years = NULL, criteria, criteria2 = NULL, 
  store = TRUE, storedev = pdf, prefix = NULL)

Arguments

data

A data.frame with series as columns and years as rows such as that produced by read.* function of dplR .

inyears

Releases in years according criteria.

in2years

Releases in years according criteria2.

criteria

Threshold for detection of moderate release

criteria2

Threshold for detection of major release.

prefix

Prefix of saved files.

store

If to save results on files.

storedev

Format for saving the graphical outputs, eg. pdf or jpeg.

Details

Plot number of releases and return data frame with release statistic.

Value

Return data frame with releases statistic per year.

Note

Check the reference.

Author(s)

Pavel Fibich <pavel.fibich@prf.jcu.cz>, Jan Altman <altman.jan@gmail.com>, Tuomas Aakala <tuomas.aakala@helsinki.fi>, Jiri Dolezal <jiriddolezal@gmail.com>

References

Altman J, Fibich P, Dolezal J & Aakala T (2014) TRADER: a package for Tree Ring Analysis of Disturbance Events in R. Dendrochonologia 32: 107-112.

See Also

plotRelease

Examples

data(relData)

abs<-absIncrease(relData1)
abs.threshold<- absTreshold(abs)
fw <- absoluteIncrease(relData1,abs,abs.threshold)

release_list <- reduceByLB(releases=fw$releases,above=fw$all_releases,type=1)
rs<-writeReleaseStats(release_list,"Total number of releases is")
plotNORelease(relData1,rs, criteria=round(abs.threshold,3) )

TRADER documentation built on May 29, 2024, 2:35 a.m.