R Tutorial: Filtering and plotting the data

18 Apr 2020 · 3 min
2:44

In this instructional segment, the instructor guides learners through a series of data‑wrangling and visualization steps using the tidyverse in R. After confirming that the dataset is already clean, the lesson focuses on filtering the data to retain only European countries, leveraging dplyr's `filter()` with the `in` operator to select multiple values efficiently. Learners then explore the distribution of two labor‑market indicators—weekly working hours and hourly compensation—for the year 2006 by creating histograms with ggplot2. To examine the relationship between these variables, a scatterplot is built using `geompoint()`. The instructor emphasizes the importance of clear titles and axis labels, showing how to add them with `labs()`. Finally, the session revisits `groupby()` and `summarise()` to compute median weekly working hours per country, preparing a summary table that will later be styled for a report. Throughout, the tone is instructional and supportive, encouraging learners to apply each step in hands‑on exercises.

Chapters

More from Richie

youtube.com

#359 My Best Friend is AI with Valerie Tiberius, Professor of Philosophy at University of Minnesota

5mo ago
youtube.com

17.8% of the World Now Uses AI — And the Gap Is Widening | The Median #5

5mo ago
youtube.com

Create GPTs to Automate Go-To-Market Research

5mo ago
youtube.com

What Happened to Self-Driving Cars? #AI

5mo ago
youtube.com

Never Use AI For This #warning #AI #flights

5mo ago
youtube.com

Use AI Agents to Analyze Power Grid Optimization

5mo ago
youtube.com

This is how modern AI actually solves problems #AITrends #AI

5mo ago
youtube.com

How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

#358 How AI Agents Will Work While You Sleep | Ruslan Salakhutdinov, Professor at Carnegie Mellon

5mo ago
youtube.com

Build an AI‑driven Dashboard

5mo ago
youtube.com

What’s Broken in Labor Markets Today #datascience

5mo ago
See all content