Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nrennie authored Jul 22, 2024
1 parent 847e1c3 commit 440e814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions 2024/2024-07-23/20240723.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ title_font <- "Passion One"

# Define colours ----------------------------------------------------------

bg_col <- "#fafafa"
text_col <- "#00186d"
bg_col <- "#00186d"
text_col <- "#fafafa"
highlight_col <- "#06c7ff"


Expand All @@ -49,7 +49,7 @@ plot_data <- eliminations |>
),
place = as.numeric(place)
) |>
filter(place <= 10) |>
filter(place <= 10, season <= 10) |>
select(contestant, place) |>
mutate(
place = if_else(place == "1", highlight_col, text_col)
Expand Down Expand Up @@ -77,8 +77,8 @@ social <- nrBrand::social_caption(
font_family = body_font
)
st <- glue::glue(
"All **American Idol** <span style='color: {highlight_col};'>winners</span>
and contestants who made the top 10 in each season."
"All American Idol <span style='color: {highlight_col};'>winners</span>
and contestants who made the top 10 in each of the first 10 seasons."
)
cap <- paste0(
"**Data**: Wikipedia | **Image**: Wikipedia <br>**Graphic**: ", social
Expand All @@ -92,6 +92,7 @@ ggplot() +
data = plot_data,
mapping = aes(label = contestant, colour = place),
family = body_font,
size = 8,
r = 4
) +
geom_image(
Expand Down
Binary file modified 2024/2024-07-23/20240723.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 440e814

Please sign in to comment.