Learn R Programming

SemiPar (version 1.0-4.2)

ustemp: U.S. temperature data

Description

The ustemp data frame has 56 observations on the temperature and location of 56 U.S. cities.

Usage

data(ustemp)

Arguments

Format

This data frame contains the following columns:

city

character string giving name of city and state (two-letter abbreviation).

min.temp

average minimum January temperature.

latitude

degrees latitude (north of Equator).

longitude

degrees longitude (west of Greenwich).

References

Ruppert, D., Wand, M.P. and Carroll, R.J. (2003) Semiparametric Regression Cambridge University Press. http://stat.tamu.edu/~carroll/semiregbook/

Examples

Run this code
# NOT RUN {
library(SemiPar)
data(ustemp)
attach(ustemp)
grey.levs <- min.temp+20
col.vec <- paste("grey",as.character(grey.levs),sep="")
plot(-longitude,latitude,col=col.vec,pch=16,cex=3,xlim=c(-130,-60))
text(-longitude,latitude,as.character(city))
# }

Run the code above in your browser using DataLab