Women Live Longer?
1 Setting up R Packages
1.1 Plot Fonts and Theme
Use _setup.qmd to set these up.
2 Introduction
This dataset pertains to survival ages in different countries across the world. Women survival ages are compared to those of men.
3 Read the Data
Rows: 18,408
Columns: 7
$ Entity <chr> "…
$ Code <chr> "…
$ Year <dbl> 2…
$ `Life expectancy - Sex: female - Age: at birth - Variant: estimates` <dbl> N…
$ `Life expectancy - Sex: male - Age: at birth - Variant: estimates` <dbl> N…
$ `Population - Sex: all - Age: all - Variant: estimates` <dbl> N…
$ Continent <chr> "…
4 Data Dictionary
NoteQuantitative Variables
Write in.
NoteQualitative Variables
Write in.
NoteObservations
Write in.
5 Analyse/Transform the Data
```{r}
#| label: data-preprocessing
#
# Write in your code here
# to prepare this data as shown below
# to generate the plot that follows
# Rename Variables if needed
# Change data to factors etc.
# Set up Counts, histograms etc
```6 Research Question
Note
Write in!! Look at the Chart!
7 Plot the Data
8 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?
- What does the dashed line in the chart represent?
- Write a 2-line story based on the chart, describing your inference/surprise.
9 Reference
In order to obtain that floating text note slope = 1 in the chart, you need to use gf_refine(annotate(....)). Look at the vignette/help here. https://ggplot2.tidyverse.org/reference/annotate.html

