Learn R Programming

PASWR2 (version 1.0.5)

PAMTEMP: Pamplona Temperatures

Description

The data frame PAMTEMP has records of the temperature and precipitation for Pamplona, Spain from January 1, 1990 to December 31, 2010.

Usage

PAMTEMP

Arguments

Format

A data frame with 7547 observations on the following 7 variables:

  • tmax (maximum daily temperature in Celsius)

  • tmin (minimum daily temperature in Celsius)

  • precip (daily precipitation in mm)

  • day (day of the month)

  • month (month of the year)

  • year (year)

  • tmean (the average of tmax and tmin)

References

Ugarte, M. D., Militino, A. F., and Arnholt, A. T. 2015. Probability and Statistics with R, Second Edition. Chapman & Hall / CRC.

Examples

Run this code
# NOT RUN {
str(PAMTEMP)
levels(PAMTEMP$month)
PAMTEMP$month <- factor(PAMTEMP$month, levels = month.abb[1:12])
levels(PAMTEMP$month)
ggplot(data = PAMTEMP, aes(x = 1:dim(PAMTEMP)[1], y = tmean)) + 
geom_line() + 
theme_bw() + 
labs(x = "", y = "Average Temperature (Celcius)")
# }

Run the code above in your browser using DataLab