Learn R Programming

TRADER (version 1.2-6)

plotNORelease: 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)

Value

Return data frame with releases statistic per year.

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.

Author

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

Details

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

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

Run this code
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) )

Run the code above in your browser using DataLab