Valentine’s Day Spending
Setting up R Packages
Introduction
This dataset pertains to spending on gifts by various people for Valentine’s Day. This was part of the TidyTuesday Project for February 2024!
Read the Data
gifts_age <- readr::read_csv('https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2024/2024-02-13/gifts_age.csv')
glimpse(gifts_age)
Rows: 6
Columns: 9
$ Age <chr> "18-24", "25-34", "35-44", "45-54", "55-64", "65+"
$ SpendingCelebrating <dbl> 51, 40, 31, 19, 18, 13
$ Candy <dbl> 70, 62, 58, 60, 50, 42
$ Flowers <dbl> 50, 44, 41, 37, 32, 25
$ Jewelry <dbl> 33, 34, 29, 20, 13, 8
$ GreetingCards <dbl> 33, 33, 42, 42, 43, 44
$ EveningOut <dbl> 41, 37, 30, 31, 29, 24
$ Clothing <dbl> 33, 27, 26, 20, 19, 12
$ GiftCards <dbl> 23, 19, 22, 23, 20, 20
#
gifts_age %>%
downloadthis::download_this(
output_name = "Valentines_Day_Gifts_dataset",
output_extension = ".csv",
button_label = "Download data",
button_type = "warning",
has_icon = TRUE,
icon = "fa fa-save"
)
Data Dictionary
Quantitative Variables
Write in.
Qualitative Variables
Write in.
Observations
Write in.
Analyse/Transform the Data
Research Question
Note
Write in!! Look at the Chart!
Plot the Data
Task and Discussion
- Complete the Data Dictionary.
- Select and Transform the variables as shown.
- Create the graphs shown and discuss the following questions:
- Identify the type of charts
- Identify the variables used for various geometrical aspects (x, y, fill…). Name the variables appropriately.
- What research activity might have been carried out to obtain the data graphed here? Provide some details.
- What pre-processing of the data was required to create the chart?
- What might be the Hypothesis / Research Question, based on the Chart?
- Write a 2-line story based on the chart, describing your inference/surprise.