Description Usage Format Source References Examples
Day of the week for 350 U.S. births in 1999.
1 |
A data frame with 7 observations on the following 2 variables.
day
a character vector
births
a numeric vector
Ventura, S.J., J.A. Martin, S.C. Curtin, F. Menacker, and B.E. Hamilton. 2001. Births: final data for 1999. National Vital Statistics Reports Vol. 49, No. 1.
http://cdc.gov/NCHS/products/nvsr.htm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(DayOfBirth)
DayOfBirth
barchart( day ~ births, DayOfBirth)
# fix bad ordering of days
DayOfBirth$oday <- with(DayOfBirth, ordered(day, levels = day))
barchart( oday ~ births, DayOfBirth)
barchart( births ~ oday, DayOfBirth, horizontal = FALSE)
barchart( births ~ oday, DayOfBirth, horizontal = FALSE,
scales = list(x=list(rot=45)))
barplot(DayOfBirth$births,
ylim = c(0, 70),
names.arg = DayOfBirth$day,
las = 2,
mgp = c(3, 0.75, 0))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.