Learn R Programming

BSDA (version 1.01)

Commute: Commuting times for selected cities in 1980 and 1990

Description

Data for Exercises 1.13, and 7.85

Usage

Commute

Arguments

Format

A data frame with 39 observations on the following 3 variables.

City

a factor with levels Atlanta Baltimore Boston Buffalo Charlotte Chicago Cincinnati Cleveland Columbus Dallas Denver Detroit Hartford Houston Indianapolis Kansas City Los Angeles Miami Milwaukee Minneapolis New Orleans New York Norfolk Orlando Philadelphia Phoenix Pittsburgh Portland Providence Rochester Sacramento Salt Lake City San Antonio San Diego San Francisco Seattle St. Louis Tampa Washington

X1980

a numeric vector

X1990

a numeric vector

Examples

Run this code
# NOT RUN {
str(Commute)
attach(Commute)
stripchart(x=list(X1980,X1990),method="stack",pch=1,cex=2,col=c("red","blue"),
group.names=c("1980","1990"),main="",xlab="minutes")
title(main="Commute Time")
boxplot(X1980,X1990,col=c("red","blue"),names=c("1980","1990"),horizontal=TRUE,las=1)
library(lattice)
commute <- stack(Commute)
commute[1:5,]
attach(commute)
stripplot(ind~values,jitter=TRUE)
dotplot(ind~values)
bwplot(ind~values)
remove(commute)
detach(Commute)
# }

Run the code above in your browser using DataLab