plotRelease: Plot releases according the given method.

View source: R/trader.R

plotReleaseR Documentation

Plot releases according the given method.

Description

Plot releases according the given method.

Usage

plotRelease(data, abs, rel, treeno = 1, method = "FraverWhite", 
  type = "l", xlab = NULL, ylab = NULL, main = NULL, 
  col = c("black", "lightblue"), 
  addHLinesCol = c("olivedrab", "red", "darkblue"), 
  addHLines = c(NULL, NULL, NULL), addHLinesText = c("", "", ""), 
  smallcex = 0.85, plotfirst = TRUE, plotpoints = FALSE, 
  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 .

abs

Data frame with absolute increases.

rel

Data frame with releases.

treeno

Number of tree to plot.

method

Which method was used for releases.

type

type of plots (parameter type for plot).

xlab

Label of x-axis.

ylab

Label of y-axis.

main

Title of the figure.

col

List of colors for curves.

addHLinesCol

List of colors for horizontal lines.

addHLines

List values for horizontal lines.

addHLinesText

List texts for horizontal lines.

smallcex

cex for text.

plotfirst

If to plot first year of growth.

plotpoints

If to plot points on the top of releases.

store

If to save results on files.

storedev

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

prefix

Prefix of saved files.

...

Further arguments pasted to plot function.

Details

Complex plotting function of releases.

Value

Plot releases for given tree (treeno).

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

absoluteIncreaseALL, growthAveragingALL, boundaryLineALL, splechtnaALL

Examples

data(relData)
rna<-noblabrams(relData1,black=FALSE) # for Nowacki and Abrams 1997
rba<-noblabrams(relData1,black=TRUE) # Black and Abrams 2003

plotRelease(relData1,rna$change,rna, 1, method="NowackiAbrams")
plotRelease(relData1,rba$change,rba, 1, method="BlackAbrams",addHLines=c(0.2,0.5))

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