Description Usage Format Source Examples
Data from Table 1 (p. 14) on causes of death for all races, both sexes, ages 15-19.
1 |
A data frame with 11 observations on the following 2 variables.
cause
a character vector
deaths
a numeric vector
Anderson, R.N. 2001. Deaths: Leading causes for 1999. National vital statistics reports 49(11):1-88. National Center for Health Statistics; Hyattsville, Maryland.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(TeenDeaths)
str(TeenDeaths)
TeenDeaths
barchart(deaths ~ cause, TeenDeaths,
horizontal = FALSE,
ylab = "Number of Deaths",
xlab = "Cause of Death",
scales = list(x = list(rot=45)))
barchart(deaths~ordered(cause, levels=cause), TeenDeaths,
horizontal = FALSE,
ylab = "Number of Deaths",
xlab = "Cause of Death",
scales=list(x=list(rot=45))
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.