Learn R Programming

PASWR2 (version 1.0.5)

CARS2004: Cars in the European Union (2004)

Description

The numbers of cars per 1000 inhabitants (cars), the total number of known mortal accidents (deaths), and the country population/1000 (population) for the 25 member countries of the European Union for the year 2004

Usage

CARS2004

Arguments

Format

A data frame with 25 observations on the following 4 variables:

  • country (a factor with levels Austria, Belgium, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, Netherlands, Poland, Portugal, Slovakia, Slovenia, Spain, Sweden, and United Kingdom)

  • cars (number of cars per 1000 inhabitants)

  • deaths (total number of known mortal accidents)

  • population (country population/1000)

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 {
plot(deaths ~ cars, data = CARS2004)
ggplot(data = CARS2004, aes(x = population, y = deaths, color = cars)) + geom_point()
# }

Run the code above in your browser using DataLab