Introduction to the Tidyverse
Learn to filter, sort, and summarize data in R with dplyr, then chart it with ggplot2 scatter plots, line plots, bar plots, and histograms.
The Tidyverse gives R users one shared set of tools for reshaping a table and then charting it, two jobs that feed each other during exploratory analysis. You work with a real dataset of historical country figures, including life expectancy, population and GDP per capita. You use dplyr to filter rows, sort them and create new columns, then pass the results to ggplot2 to chart them.
What You Will Achieve
- Filter, sort and add columns to an R data frame to answer a specific question about the countries in it
- Calculate medians and other statistics for each year or continent with group_by() and summarize()
- Build scatter plots that use log scales, color, size and separate panels to compare variables across countries
- Pick the plot type that fits the pattern you want to show and give the finished graph a title
Program Overview
Data Wrangling with dplyr Verbs
Starts with the gapminder dataset and the data frame, then works through the dplyr verbs that select, order and change observations.
- Loading the gapminder and dplyr packages
- The filter verb for single years and countries
- The arrange verb and sorting by life expectancy
- The mutate verb and combining filter, arrange and mutate
Visualizing Data with ggplot2
Turns dplyr output into ggplot2 graphs that compare population, GDP per capita and life expectancy across countries.
- Scatter plots and variable assignment
- Log scales on one or both axes
- Color and size as additional aesthetics
- Faceting by continent and by year
Grouped Summaries and Types of Plots
Collapses the data into grouped summaries, then shows how line plots, bar plots, histograms and boxplots each need their own data preparation.
- The summarize and group_by verbs
- Summaries by year, by continent and by both
- Line plots and bar plots of median GDP per capita
- Histograms, boxplots and graph titles
Certificate Awarded (Paid)
Complete the course to earn it.
Job Outlook
Filtering, summarizing and charting tabular data in R is routine work in data analysis, statistics and business reporting, wherever exploratory questions are answered from a dataset.
Good for: Learners who want their first R code to go straight into analyzing and charting a real dataset, with dplyr and ggplot2 used side by side.
Keep in mind: Every lesson works on the same gapminder country data, so applying these steps to your own datasets is practice you do after the course.
Bottom line: A compact R workflow course in which each table operation leads directly into a chart of the same country data.
Frequently Asked Questions
What dataset do the exercises use?
All four chapters use the gapminder dataset, a table of historical country data. You filter and sort it by country and year, compare life expectancy, population and GDP per capita, and summarize it by continent and year.
Which Tidyverse packages does the course rely on?
Two packages carry the course. dplyr handles filtering, arranging, mutating, grouping and summarizing the table, and ggplot2 draws the graphs. The chapters show how output from dplyr feeds directly into a ggplot2 plot.
What does faceting mean in these lessons?
Faceting splits one plot into a set of smaller subgraphs, one for each value of a variable. The lessons create a subgraph for each continent and then facet the same data by year to compare periods.
Are transcripts and a glossary available?
Yes. The videos include live transcripts that you can reveal with the Show transcript option at the bottom left of each video, and a course glossary is available in the resources section.


There are no reviews yet.