Learn R Programming

BIOdry (version 0.9)

plot.wlai: Plot an wlai object

Description

A Walter-Lieth climate diagram is produced.

Usage

# S3 method for wlai
plot(x, ...)

Value

A plot of the Walter-Lieth diagram.

Arguments

x

vector or data.frame. An object inheriting from class wlai, representing the Aridity Index.

...

logical. Further arguments passed to plot function.

Author

Wilson Lara <wilarhen@gmail.com>, Felipe Bravo <fbravo@pvs.uva.es>

Details

Areas between temperature and precipitation lines when precipitation exceeds temperature (moist seasons) are plotted in gray color, and areas where temperature exceeds precipitation (dry seasons) are plotted in black color. Monthly cumulative precipitations over 100 mm are scaled such that 1 degree C of average temperature is equal to 5 mm of precipitation.

References

Manrique E., A. Fernandez-Cancio. 2000. Extreme climatic events in dendroclimatic reconstructions from Spain. Clim. Chang., 44: 123-138.

Examples

Run this code
##random simulation of climatic records
set.seed(1)
pr <- rnorm(12,1,1)
tm <- rnorm(12,0,1)
cld <- data.frame(pr,tm)
##labels of months from october to september
rownames(cld) <- month.abb[c(10:12,1:9)]
rownames(cld) <- c(10:12,1:9)
##computation of the aridity index and climate diagram
AI <- wlai(cld)
plot.wlai(AI)

Run the code above in your browser using DataLab