event.plot: Plot event years for individual trees

Description Usage Arguments Details Value Author(s) Examples

View source: R/event.plot.R

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

1
2
3
event.plot(list.name, sign = c("both", "pos", "neg"),
           start.yr = NULL, end.yr = 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".

start.yr

an integer specifying the first year to be plotted. Defaults to the first year with data if start.yr is NULL.

end.yr

an integer specifying the last year to be plotted. Defaults to the last year with data if end.yr is NULL.

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. If event years were defined using method.thresh "Neuwirth" (pointer.norm), different tones of gray indicate weak, strong and extreme event years.

Value

Dot plot.

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Plot event years from pointer.rgc output
data(s033)
py <- pointer.rgc(s033)
event.plot(py, start.yr = 1950, end.yr = NULL) 

## Plot negative event years from pointer.norm output (method "Neuwirth")
data(s033)
py_n <- pointer.norm(s033, window = 5, method.thresh = "Neuwirth")
event.plot(py_n, sign = "neg", start.yr = 1950, end.yr = NULL) 
           

Example output

Loading required package: ggplot2

pointRes documentation built on May 1, 2019, 8:45 p.m.