Title: | Data from "The Great British Bake Off" |
---|---|
Description: | Data about the bakers, challenges, and ratings for "The Great British Bake Off", from Wikipedia <https://en.wikipedia.org/wiki/The_Great_British_Bake_Off>. |
Authors: | Alison Hill [aut, cre, cph] , Chester Ismay [aut] , Richard Iannone [aut] |
Maintainer: | Alison Hill <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.2.0.9000 |
Built: | 2024-11-16 03:18:32 UTC |
Source: | https://github.com/apreshill/bakeoff |
Get a vector of hexadecimal color codes, or, extract a subset of colors as a
using defined color names (available using names(bakeoff_colors())
).
bakeoff_colors(...)
bakeoff_colors(...)
... |
Character names of bakeoff colors. If none are specified,
returns all. If any are specified, they can be listed by names in quotes
(no need to combine with |
A named character vector of hex colors.
bakeoff_colors() bakeoff_colors("riptide") bakeoff_colors("baltic", "yellow") names(bakeoff_colors()) if (require('scales')) { scales::show_col(bakeoff_colors(), label = FALSE) }
bakeoff_colors() bakeoff_colors("riptide") bakeoff_colors("baltic", "yellow") names(bakeoff_colors()) if (require('scales')) { scales::show_col(bakeoff_colors(), label = FALSE) }
A bakeoff palette generator
bakeoff_palette( palette = "showstopper", n, direction = 1, type = c("discrete", "continuous") )
bakeoff_palette( palette = "showstopper", n, direction = 1, type = c("discrete", "continuous") )
palette |
Name of desired palette. Can be either |
n |
Number of colors desired. All palettes have 10 colors, matching the total number of series and maximum number of episodes per series. If omitted, bakeoff uses all colors. |
direction |
Either |
type |
Either |
A vector of colors.
bakeoff_palette("showstopper") if (require('scales')) { show_col(bakeoff_palette("finale")) } if (require('ggplot2')) { line_plot <- ggplot(ratings, aes(x = episode, y = viewers_7day, color = as.factor(series), group = series)) + facet_wrap(~series) + geom_line(lwd = 2) line_plot + scale_color_manual(values = bakeoff_palette(), guide = "none") ggplot(episodes, aes(episode, bakers_appeared, fill = as.factor(series))) + geom_col() + facet_wrap(~series) + scale_fill_manual(values = bakeoff_palette("signature"), guide = "none") + scale_x_continuous(breaks = scales::pretty_breaks()) } # If you need more colors than normally found in a palette, you # can use a continuous palette to interpolate between existing # colours pal <- bakeoff_palette(palette = "finale", n = 20, type = "continuous") if (require('scales')) { show_col(pal) }
bakeoff_palette("showstopper") if (require('scales')) { show_col(bakeoff_palette("finale")) } if (require('ggplot2')) { line_plot <- ggplot(ratings, aes(x = episode, y = viewers_7day, color = as.factor(series), group = series)) + facet_wrap(~series) + geom_line(lwd = 2) line_plot + scale_color_manual(values = bakeoff_palette(), guide = "none") ggplot(episodes, aes(episode, bakers_appeared, fill = as.factor(series))) + geom_col() + facet_wrap(~series) + scale_fill_manual(values = bakeoff_palette("signature"), guide = "none") + scale_x_continuous(breaks = scales::pretty_breaks()) } # If you need more colors than normally found in a palette, you # can use a continuous palette to interpolate between existing # colours pal <- bakeoff_palette(palette = "finale", n = 20, type = "continuous") if (require('scales')) { show_col(pal) }
Print names of all bakeoff color palettes
bakeoff_palette_names()
bakeoff_palette_names()
A character vector of color palette names.
bakeoff_palette_names()
bakeoff_palette_names()
Information about each baker and their performance during the series they appeared on.
bakers
bakers
A data frame with 120 rows representing individual bakers and 24 variables:
An integer denoting UK series (1
-10
).
A character string giving full name.
A character string giving given or nickname.
An integer denoting age in years at first episode appeared.
A character string giving occupation.
A character string giving hometown.
A character string giving family name.
A character string giving given name.
An integer denoting the number of times a given baker won Star Baker.
An integer denoting the number of times a given baker won first place in the technical challenge.
An integer denoting the number of times a given baker was in the top 3 (1st, 2nd, or 3rd) on the technical challenge.
An integer denoting the number of times a given baker was in the bottom 3 on the technical challenge.
An integer denoting the best technical rank earned by a given baker across all episodes appeared (higher is better).
An integer denoting the worst technical rank earned by a given baker across all episodes appeared (higher is better).
An integer denoting the median technical rank earned by a given baker across all episodes appeared (higher is better).
An integer. Is 0
if not the series winner, 1
if
series winner.
An integer. Is 0
if not a runner-up, 1
if a
runner-up.
An integer denoting the total number of episodes in which a given baker appeared.
A date denoting original airdate of the first episode in which a given baker appeared (equivalent to the series premiere episode in the UK.)
A date denoting original airdate of the last episode in which a given baker appeared (in the UK).
A date denoting original airdate of the first episode in which a given baker appeared (equivalent to the series premiere episode in the US).
A date denoting original airdate of the last episode in which a given baker appeared (in the US).
A percentage denoting the number of episodes in a given series/season in which a given baker appeared out of all episodes aired in that series/season.
A percentage denoting the number of episodes in which a given baker placed in the top 3 for the technical challenge, out of the number of total episodes that the baker appeared in.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off_(series_1)#The_Bakers, for example, for Series 1 bakers.
if (require('tibble')) { bakers } head(bakers)
if (require('tibble')) { bakers } head(bakers)
Information about each baker who has appeared on the show.
bakers_raw
bakers_raw
A data frame with 120 rows representing individual bakers and 8 variables:
A factor denoting UK series (1
-10
).
A character string giving full name.
A character string with a given name or nickname.
An integer denoting age in years at first episode appeared.
A character string giving occupation.
A character string giving hometown.
A character string giving family name.
A character string giving given name.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off_(series_1)#The_Bakers, for example, for series 1 bakers.
if (require('tibble')) { bakers_raw } head(bakers_raw)
if (require('tibble')) { bakers_raw } head(bakers_raw)
Bakes for both the signature and showstopper challenges for each baker across all 10 GBBO series.
bakes_raw
bakes_raw
A data frame with 548 rows representing individual signatures and showstoppers for each baker and 6 variables:
An integer denoting UK series (1
-10
).
An integer denoting episode number within a series.
A character string with a given name or nickname.
A character string containing the bake for the signature challenge for that baker/episode.
An integer denoting the rank on the technical challenge
for that baker/episode. A value of 1
means the baker was the winner of
the technical challenge. If NA
, the baker did not appear in the
episode.
A character string containing the bake for the showstopper challenge for that baker/episode.
if (require('tibble')) { bakes_raw } head(bakes_raw)
if (require('tibble')) { bakes_raw } head(bakes_raw)
Details about the three challenges ("signature"
, "technical"
, and
"showstopper"
) for each baker/episode across all GBBO series. Who was
eliminated? Who won star baker? In the finale, who won and who was runner up?
challenges
challenges
A data frame with 1,136 rows representing individual bakers per episode and 7 variables:
An integer denoting the UK series number (1
-10
).
An integer denoting episode number within a series.
A character string with a given name or nickname.
A character string denoting if the baker was IN
, OUT
,
STAR BAKER
, or SICK
for a given episode. For finale episodes, values
are either WINNER
or Runner-up
. If NA
, the baker did not appear in
episode.
A character string containing the bake for the signature
challenge for that baker/episode. If NA
, the baker did not appear in
episode.
An integer denoting the rank on the technical challenge
for that baker/episode. A value of 1
means the baker was the winner of
the technical challenge. If NA
, the baker did not appear in the
episode.
A character string containing the bake for the
showstopper challenge for that baker/episode. If NA
, the baker did not
appear in episode.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off#Format
if (require('tibble')) { challenges } head(challenges)
if (require('tibble')) { challenges } head(challenges)
Each episodes' statistics. This dataset is made by collapsing
challenges
by series
and episode
.
episodes
episodes
A data frame with 94 rows representing individual episodes per series and 10 variables:
An integer denoting UK series (1
-10
).
An integer denoting episode number within a series.
an integer denoting the number of bakers who appeared in a given episode.
An integer denoting the number of bakers were either eliminated, left at will, or left due to illness in that episode.
An integer denoting the number of bakers who remained at the end of a given episode.
An integer denoting the number of bakers crowned Star Baker in a given episode.
An integer denoting the number of bakers who placed first in the technical challenge.
A character string with the names of the bakers who won Star Baker in a given episode, separated by commas.
A character string with the name of the series winner. Only present for final episodes within each series.
A character string with the name of the bakers who left a given episode, separated by commas.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off#Format
if (require('tibble')) { episodes } head(episodes)
if (require('tibble')) { episodes } head(episodes)
Details about the three challenges (signature, technical, and showstopper) for each baker/episode across all 10 GBBO series.
episodes_raw
episodes_raw
A data frame with 704 rows representing individual bakers per episode and 6 variables:
A factor denoting UK series (1
-10
).
A factor denoting episode number within a series.
A character string giving given or nickname.
A character string containing the bake for the signature challenge for that baker/episode.
An integer denoting the rank on the technical challenge
for that baker/episode. A rank of 1
is winner of the technical
challenge.
A character string containing the bake for the showstopper challenge for that baker/episode.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off#Format
if (require('tibble')) { episodes_raw } head(episodes_raw)
if (require('tibble')) { episodes_raw } head(episodes_raw)
This dataset has one row per episode and includes ratings plus
original airdates in the UK (by series) and US
(by season). This dataset is made by joining the ratings_raw
and seasons_raw
datasets by both series
and episode
.
ratings
ratings
A data frame with 94 rows representing individual episodes and 11 variables:
An integer denoting UK series (1
-10
).
An integer denoting episode number within a series.
An integer denoting continuous episode number across series (1
-94
)
A date denoting original airdate of episode in the UK.
The number of viewers in millions within a 7-day window from airdate.
The number of viewers in millions within a 28-day window from airdate.
An integer denoting the episode's weekly ranking within network (note that the networks changed for series 8 and later).
An integer denoting the episode's weekly ranking across all channels.
Number of BBC iPlayer requests (note: not available for all series, and only for series that aired on the BBC).
An integer denoting US season (1
-5
).
A date denoting original airdate of episode in the US, according to pbs.org.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off_(series_1)#Ratings
if (require('tibble')) { ratings } head(ratings)
if (require('tibble')) { ratings } head(ratings)
Ratings for all episodes across all 10 GBBO series.
ratings_raw
ratings_raw
A data frame with 94 rows representing individual episodes and 9 variables:
a factor denoting UK series (1
-10
).
a factor denoting episode number within a series.
a date denoting original airdate of episode in the UK.
number of viewers in millions within a 7-day window from airdate.
number of viewers in millions within a 28-day window from airdate.
an integer denoting the episode's weekly ranking within network (note that the networks changed for series 8 and later).
an integer denoting the episode's weekly ranking across all channels.
number of BBC iPlayer requests (note: not available for all series, and only for series that aired on the BBC).
continuous episode count.
All official episode viewer number are from BARB, as entered on Wikipedia https://en.wikipedia.org/wiki/The_Great_British_Bake_Off
if (require('tibble')) { ratings_raw } head(ratings_raw)
if (require('tibble')) { ratings_raw } head(ratings_raw)
This data has one row per baker for every episode, including episodes they did not appear in.
results_raw
results_raw
A data frame with 1,136 rows representing individual bakers per episode and 4 variables:
A factor denoting UK series (1-10)
A factor denoting episode number within a series
A character string giving given or nickname only (note: see
bakers
for full baker names)
A factor denoting if the baker was "IN"
, "OUT"
,
"STAR BAKER"
, or "SICK"
for a given episode. For finale episodes,
values are either "WINNER"
or "RUNNER-UP"
. If NA
, baker did not
appear in episode.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off_(series_1)#Results_summary, for example, for series 1 results summary.
if (require('tibble')) { results_raw }
if (require('tibble')) { results_raw }
Color scale constructor for bakeoff colors
scale_color_bakeoff( palette = "showstopper", discrete = TRUE, direction = 1, ... ) scale_fill_bakeoff( palette = "showstopper", discrete = TRUE, direction = 1, ... )
scale_color_bakeoff( palette = "showstopper", discrete = TRUE, direction = 1, ... ) scale_fill_bakeoff( palette = "showstopper", discrete = TRUE, direction = 1, ... )
palette |
Character name of palette in |
discrete |
Boolean indicating whether color aesthetic is discrete or not. |
direction |
Either |
... |
Additional arguments passed to |
A function for constructing a color or a fill scale used for ggplot2 graphics.
if (require('ggplot2')) { ggplot(ratings, aes(x = episode, y = viewers_7day, group = series, color = as.factor(series))) + geom_line(lwd = 3) + theme_minimal() + scale_color_bakeoff("finale", guide = "none") }
if (require('ggplot2')) { ggplot(ratings, aes(x = episode, y = viewers_7day, group = series, color = as.factor(series))) + geom_line(lwd = 3) + theme_minimal() + scale_color_bakeoff("finale", guide = "none") }
This data has one row per season aired in the US as 'The Great British Baking Show'.
seasons_raw
seasons_raw
A data frame with 8 rows representing individual series and 11 variables:
an integer denoting UK series (1
-8
)
an integer denoting total number of episodes within series
an integer denoting US season (1
-5
)
a date denoting original airdate of episode in the US, according to pbs.org
US airdates manually recorded from https://www.pbs.org/food/shows/great-british-baking-show/
if (require('tibble')) { seasons_raw } head(seasons_raw)
if (require('tibble')) { seasons_raw } head(seasons_raw)
This dataset has one row per series aired in the UK as 'The Great British Bake Off'. When did a series premiere in the UK? When was the finale episode? How many viewers on average did a series have?
series_raw
series_raw
A data frame with 10 rows representing individual series and 11 variables:
A factor denoting UK series (1
-10
).
An integer denoting total number of episodes within series.
A date denoting original airdate of series premiere episode in the UK.
A date denoting original airdate of series finale episode in the UK.
A character string denoting name of series winner.
Average UK viewers in millions. Also see
ratings
.
A character string denoting weekday that series' episodes aired in UK.
time of day that series' episodes aired in UK (24-hour clock).
A character string denoting channel that series aired on:
one of BBC One
, BBC Two
, or Channel 4
.
A character string denoting the name of one of the bakers who was a series runner-up. The number is not meaningful.
A character string denoting the name of one of the bakers who was a series runner-up. The number is not meaningful.
See https://en.wikipedia.org/wiki/The_Great_British_Bake_Off#Series_overview
if (require('tibble')) { series_raw } head(series_raw)
if (require('tibble')) { series_raw } head(series_raw)
Results of a knowledge test from Junior Bake Off (Series 2, Episode 14).
spice_test_wide
spice_test_wide
A data frame with 4 rows representing baker results from the spice-based knowledge test and 7 variables:
A character string with a given name or nickname.
The different guesses (in order) for what the mystery spice was.
An integer whether the guess was
correct (1
) or wrong (0
).
if (require('tibble')) { spice_test_wide } head(spice_test_wide)
if (require('tibble')) { spice_test_wide } head(spice_test_wide)