plotNORelease: Plot number of releases.

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/trader.R

Description

Barplot number of releases according given criteria.

Usage

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

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

1
2
3
4
5
6
7
8
9
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),prefix="relai")

TRADER documentation built on May 2, 2019, 9:02 a.m.