Learn R Programming

SpatialExtremes (version 2.1-0)

rainfall: Summer annual maxima precipitation in Switzerland

Description

Maximum daily rainfall amounts over the years 1962--2008 occuring during June--August at 79 sites in Switzerland.

Usage

data(rainfall)

Arguments

Format

This data set contains two R objects: 'rain' and 'coord'. 'rain' is a 47 by 79 matrix giving the amount of rain in millimeters, each column correspond to one locations. 'coord' is a 79 by 3 matrix giving the longitude, latitude and the elevation for each station, all of them being in meters.

Examples

Run this code
# NOT RUN {
data(rainfall)
op <- par(mfrow = c(1,2),pty = "s", mar = c(0,0,0,0))
swiss(city = TRUE)
idx.site <- c(1, 10, 20)
points(coord[-idx.site,])
points(coord[idx.site,], pch = 15, col = 2:4)

par(mar = c(2,4,0,0))
plot(1962:2008, rain[,1], type = "b", xlab = "Year", ylab =
"Precipitation (cm)", ylim = c(0, 120), col = 2)
lines(1962:2008, rain[,10], col = 3, type = "b")
lines(1962:2008, rain[,20], col = 4, type = "b")
par(op)
# }

Run the code above in your browser using DataLab