| Birthdays | R Documentation |
A day by day record of the number of births in each US State.
data(Birthdays)
A data frame with 374221 observations on the following variables.
statestate where child was born
yearyear (1969-1988)
monthmonth (1-12)
dayday of month
datedate as a date object
wdayDay of week (ordered factor)
birthsnumber of births
Births, Births78, Births2015, BirthsSSA, BirthsCDC for data sets that are
aggregated at the level of the entire country.
data(Birthdays)
if (require(mosaic)) {
MI <- Birthdays |> filter(state == "MI")
gf_point(births ~ date, Birthdays, data = MI)
gf_line(births ~ date, Birthdays, data = MI, color = ~ wday)
gf_line(births ~ date,
data = Birthdays |> group_by(date) |> summarise(births = sum(births)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.