event.plot: Plot event years for individual trees

View source: R/event.plot.R

event.plotR Documentation

Plot event years for individual trees

Description

The function creates a dot plot showing positive and (or) negative event years from a list of the type as produced by pointer.norm or pointer.rgc.

Usage

event.plot(list.name, sign = c("both", "pos", "neg"),
           period = NULL, x.tick.major = 10, x.tick.minor = 5)

Arguments

list.name

a list as produced by pointer.norm or pointer.rgc

sign

a character string specifying whether both positive and negative ("both"), or only positive ("pos") or negative ("neg") event years should be displayed. Defaults to "both".

period

a vector specifying the start and end year to be plotted. Defaults to the full period covered by the output of the pointer year analysis.

x.tick.major

an integer controlling the major x-axis tick labels. Defaults to 10 years.

x.tick.minor

an integer controlling the minor x-axis ticks. Defaults to 5 years.

Details

The function makes a dot plot showing event years for individual trees. Positive and negative event years are indicated with different symbols and (or) colors.

Value

Dot plot.

Author(s)

Marieke van der Maaten-Theunissen and Ernst van der Maaten.

Examples

## Plot event years from pointer.rgc output
data(s033)
py <- pointer.rgc(s033)
event.plot(py) 

## Plot negative event years from pointer.norm output (method "Neuwirth") for a specific period
data(s033)
detr_s033 <- detrend(s033, method = "Spline", nyrs = 30)
pyn <- pointer.norm(detr_s033, method.thresh = "Neuwirth")
event.plot(pyn, sign = "neg", period = c(1950, 2007)) 
           

pointRes documentation built on May 8, 2022, 1:05 a.m.