rgc.plot: Plot mean relative growth changes and pointer years

Description Usage Arguments Details Value Author(s) Examples

View source: R/rgc.plot.R

Description

The function creates a bar plot of mean relative growth changes from a list of the type as produced by pointer.rgc and highlights years identified as pointer years.

Usage

1
2
rgc.plot(list.name, start.yr = NULL, end.yr = NULL, 
         sd.disp = FALSE, x.tick.major = 10, x.tick.minor = 5)

Arguments

list.name

a list as produced by pointer.rgc

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.

sd.disp

a logical specifying whether error bars (stdev) should be displayed. Defaults to FALSE.

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 plot showing mean relative growth changes; pointer years are indicated with dark-gray bars. Error bars can be set.

Value

Bar plot.

Author(s)

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

Examples

1
2
3
4
5
6
## Plot mean relative growth changes and pointer years
data(s033)
py <- pointer.rgc(s033, nb.yrs = 4, rgc.thresh.pos = 60, rgc.thresh.neg = 40, 
                  series.thresh = 75)
rgc.plot(py, start.yr = 1950, end.yr = NULL,  
         sd.disp = FALSE, x.tick.major = 10, x.tick.minor = 5)

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