Learn R Programming

NPCirc (version 3.1.1)

temp.wind: Temperature and wind direction data

Description

These data, analyzed by Oliveira et al. (2013), consists of observations of temperature and wind direction during the austral summer season 2008-2009 (from November 2008 to March 2009) in Vinciguerra (Tierra del Fuego, Argentina).

Usage

data(temp.wind)

Arguments

Format

A data frame with 3648 observations on four variables: Date, Time, Temperature (in degrees Celsius) and Direction (in degrees).

Details

Data contains NAs.

References

Oliveira, M., Crujeiras R.M. and Rodriguez--Casal, A. (2013) Nonparametric circular methods for exploring environmental data. Environmental and Ecological Statistics, 20, 1--17.

Examples

Run this code
data(temp.wind)
winddir <- temp.wind[,4] 
temp <- temp.wind[,3]
nas <- which(is.na(winddir))
winddir <- circular(winddir[-nas], units="degrees") 
temp <- temp[-nas]

est <- kern.reg.circ.lin(winddir, temp, t=NULL, bw=3.41, method="LL")
plot(est, plot.type="line", xlab="wind direction", ylab="temperature")
plot(est, plot.type="circle", points.plot=TRUE)

Run the code above in your browser using DataLab