age_growth_plot: age_growth_plot

Description Usage Arguments Examples

View source: R/chrono-quality.R

Description

Plots mean annual growth rate in a common interval (shown in first plot) over tree age - a subset (eg. historic vs. recent trees, a different site etc.) can be specified to get a different color in the plot.

Usage

1
age_growth_plot(rwl, po, subset = NULL, subset.color = "violet", main = "")

Arguments

rwl

an rwl object.

po

a data frame with series names in the first and pith offset values (number of rings) in the second column.

subset

provide a character string of names in rwl which get a different color in the last plot.

subset.color

color of the subset.

main

optional plot title.

Examples

1
2
3
4
5
6
library("dplR")
data("gp.rwl")
data("gp.po")
gp.po[ ,1] <- as.character(gp.po[ ,1])
sub <- names(gp.rwl)[substr(names(gp.rwl), 3, 3) == "B"]
age_growth_plot(gp.rwl, gp.po, subset = sub, main = 'my age-growth-plot')

konradmayer/trlboku documentation built on July 3, 2020, 9:49 p.m.