This function builds a ggplot object to display the upper
and lower record times for both forward and backward directions.
Usage
L.plot(
X,
all = TRUE,
record = c("upper", "lower"),
point.col = "grey23",
point.alpha = 0.8,
line.col = "grey95"
)
Value
A ggplot object.
Arguments
X
A numeric vector, matrix (or data frame).
all
Logical. If TRUE (the default) the four types of record
are displayed.
record
If all = FALSE, a character string indicating the type
of record to be calculated, "upper" or "lower".
point.col, point.alpha
Colour and transparency of the points.
line.col
Colour to plot lines.
Author
Jorge Castillo-Mateo
Details
The function can be applied to plot the record times in a vector
(if argument X is a vector) or to plot and compare the record
times in a set of vectors (if argument X is a matrix). In the
latter case, the approach to obtain the record times is applied to each
column of the matrix.
If all = TRUE, a matrix of four panels is displayed for upper and
lower records, and for the forward and backward (series_rev)
directions. Otherwise, only one type of forward record is displayed.
An example of use of a plot with similar ideas is shown in Benestad
(2004, Figures 3 and 8).
References
Benestad RE (2004). “Record-Values, Nonstationarity Tests and Extreme Value Distributions.”
Global and Planetary Change, 44(1-4), 11-26.
tools:::Rd_expr_doi("10.1016/j.gloplacha.2004.06.002").