ukbabynames | R Documentation |
Full baby name data 1974-2020 for the United Kingdom from all nations. Contains
data from England and Wales (ewbabynames
), Scotland (scotbabynames
), and
Northern Ireland (nibabynames
).
ukbabynames
A data frame with 565,817 observations on 6 variables.
A year (1974-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.
Office of National Statistics. 2021. Baby Names Statistics Girls. Office of National Statistics. 2021. Baby Names Statistics Boys. Northern Ireland Statistics and Research Agency. 2021. Baby Names Statistics Boys and Girls. National Records of Scotland. 2021. Baby Names Statistics Boys and Girls.
library(ggplot2) library(dplyr) ukbabynames %>% filter(name == "Jack") %>% ggplot(aes(x = year, y = n, color = nation)) + geom_line() + labs( title = "Popularity of the name `Jack` in the UK", subtitle = "by Nation", x = "Year", y = "Number of babies", color = NULL )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.