Learn R Programming

BSDA (version 1.01)

Abilene: Crimes reported in Abilene, Texas

Description

Data used in Exercise 1.23 and 2.79

Usage

Abilene

Arguments

Format

A data frame with 8 observations on the following 5 variables.

Crime

a factor with levels Aggravated assault Arson Burglary Forcible rape Larceny theft Murder Robbery Vehicle theft

X1992

a numeric vector

X92percent

a numeric vector

X1999

a numeric vector

X99percent

a numeric vector

Examples

Run this code
# NOT RUN {
data(Abilene)
attach(Abilene)
par(mfrow=c(2,1))
barplot(X1992,names.arg=c("Murder","Rape","Robbery","Assault","Burglary",
"Larceny","V.Theft","Arson"),col="blue",main="Crime 1992")
barplot(X1999,names.arg=c("Murder","Rape","Robbery","Assault","Burglary",
"Larceny","V.Theft","Arson"),col="red",main="Crime 1999")
par(mfrow=c(1,1))
detach(Abilene)
# }

Run the code above in your browser using DataLab