The number of LGBTQ+ movies has surged from 1990 to 2022, with English-language films consistently dominating despite a slight rise in non-English releases.
#TidyTuesday
Author
Aditya Dahiya
Published
June 22, 2024
The data for this week comes from the TidyRainbow project, which is dedicated to the LGBTQ+ community using the R language ecosystem. This specific dataset, curated by Cara Cuiule, features LGBTQ+ movies. It includes comprehensive details such as movie titles, original language, release dates, popularity ratings, vote counts, and genres, among others.
The graphic displays a stacked bar graph of movie releases per year, color-coded by language, alongside a proportional stream graph showing language distribution over time. Key findings reveal a significant rise in LGBTQ+ movies, from 20 in 1990 to 526 in 2020, with English-language films dominating at around 75% of the total. While the share of non-English movies is increasing slightly, there are notable shifts such as the rise in Portuguese films and a decline in Japanese films. This indicates growing LGBTQ+ representation in cinema, though predominantly in English.
How I made this graphic?
Loading required libraries, data import & creating custom functions
Code
# Data Import and Wrangling Toolslibrary(tidyverse) # All things tidy# Final plot toolslibrary(scales) # Nice Scales for ggplot2library(fontawesome) # Icons display in ggplot2library(ggtext) # Markdown text support for ggplot2library(showtext) # Display fonts in ggplot2library(colorspace) # Lighten and Darken colourslibrary(patchwork) # Combining plots# Load datalgbtq_movies <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2024/2024-06-25/lgbtq_movies.csv')
# Font for titlesfont_add_google("Handlee",family ="title_font") # Font for the captionfont_add_google("Saira Extra Condensed",family ="caption_font") # Font for plot textfont_add_google("Dosis",family ="body_font") showtext_auto()bg_col <-"white"# Credits for coffeee palettemypal <- paletteer::paletteer_d("PrettyCols::Rainbow")text_col <-"#00007FFF"text_hil <-"#00009BFF"bts =80# Caption stuff for the plotsysfonts::font_add(family ="Font Awesome 6 Brands",regular = here::here("docs", "Font Awesome 6 Brands-Regular-400.otf"))github <-""github_username <-"aditya-dahiya"xtwitter <-""xtwitter_username <-"@adityadahiyaias"social_caption_1 <- glue::glue("<span style='font-family:\"Font Awesome 6 Brands\";'>{github};</span> <span style='color: {text_hil}'>{github_username} </span>")social_caption_2 <- glue::glue("<span style='font-family:\"Font Awesome 6 Brands\";'>{xtwitter};</span> <span style='color: {text_hil}'>{xtwitter_username}</span>")
Annotation Text for the Plot
Code
plot_supertitle <-"Rising Representation"plot_title <-"LGBTQ+ Movies by Language (1990-2022)"plot_caption <-paste0("**Data:** TidyRainbow Project by Cara Cuiule", " | **Code:** ", social_caption_1, " | **Graphics:** ", social_caption_2 )plot_subtitle <-str_wrap("The number of LGBTQ+ movies has surged from 1990 to 2022, with English-language films consistently dominating despite a slight rise in non-English releases.", 80)