Learn R Programming

abd (version 0.2-8)

TeenDeaths: Causes of Teenage Deaths

Description

Data from Table 1 (p. 14) on causes of death for all races, both sexes, ages 15-19.

Arguments

Format

A data frame with 11 observations on the following 2 variables.
cause
a character vector
deaths
a numeric vector

Source

Anderson, R.N. 2001. Deaths: Leading causes for 1999. National vital statistics reports 49(11):1-88. National Center for Health Statistics; Hyattsville, Maryland.

Examples

Run this code
str(TeenDeaths)
TeenDeaths

barchart(deaths ~ cause, TeenDeaths,
  horizontal = FALSE,
  ylab = "Number of Deaths",
  xlab = "Cause of Death", origin=0,
  scales = list(x = list(rot=45)))

barchart(deaths~ordered(cause, levels=cause), TeenDeaths,
  horizontal = FALSE,
  ylab = "Number of Deaths",
  xlab = "Cause of Death", origin=0,
  scales=list(x=list(rot=45))
  )

Run the code above in your browser using DataLab