ewbabynames | R Documentation |
Full baby name data from 1996 to 2020 for England and Wales from the Office of National Statistics.
ewbabynames
A data frame with 294,801 observations on 6 variables.
A year (1996-2020).
Sex, M
for male and F
for female.
A name.
Count of name within year and sex.
Rank of name within year and sex.
Nation of data source: England & Wales
.
The data are released by the Office of National Statistics under the Open Government License v3.0.
Office of National Statistics. 2021. Baby Names Statistics Girls. Office of National Statistics. 2021. Baby Names Statistics Boys.
rankings
library(ggplot2) library(dplyr) ewbabynames %>% filter(name == "Nicholas") %>% ggplot(aes(x = year, y = n)) + geom_line() + labs( title = "Popularity of the name `Nicholas` in England & Wales", x = "Year", y = "Number of babies" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.