Skip to main content
Roy Wang avatar

Roy Wang has completed

Data Visualization with ggplot2 (Part 2)

Start course For Free
5 hours
4,750 XP
Statement of Accomplishment Badge

Loved by learners at thousands of companies


Course Description

This ggplot2 tutorial builds on your knowledge from the first course to produce meaningful explanatory plots. We'll explore the last four optional layers. Statistics will be calculated on the fly and we’ll see how Coordinates and Facets aid in communication. Publication quality plots will be produced directly in R using the Themes layer. We’ll also discuss details on data visualization best practices with ggplot2 to help make sure you have a sound understanding of what works and why. By the end of the course, you’ll have all the tools needed to make a custom plotting function to explore a large data set, combining statistics and excellent visuals.
For Business

GroupTraining 2 or more people?

Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and more
Try DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Statistics

    Free

    In this chapter, we’ll delve into how to use R ggplot2 as a tool for graphical data analysis, progressing from just plotting data to applying a variety of statistical methods. This includes a variety of linear models, descriptive and inferential statistics (mean, standard deviation and confidence intervals) and custom functions.

    Play Chapter Now
    Stats and Geoms
    50 xp
    Smoothing
    100 xp
    Grouping variables
    100 xp
    Modifying stat_smooth
    100 xp
    Modifying stat_smooth (2)
    100 xp
    Quantiles
    100 xp
    Sum
    100 xp
    Stats outside Geoms
    50 xp
    Preparations
    100 xp
    Plotting variations
    100 xp
    Custom Functions
    100 xp
    Custom Functions (2)
    100 xp
  2. 2

    Coordinates and Facets

    The Coordinates and Facets layers offer specific and very useful tools for efficiently and accurately communicating data. In this chapter we’ll look at the various ways of effectively using these two layers.

    Play Chapter Now
  3. 3

    Themes

    Now that you’ve built high-quality plots, it’s time to make them pretty. This is the last step in the data viz process. The Themes layer will enable you to make publication quality plots directly in R.

    Play Chapter Now
  4. 4

    Best Practices

    Once you have the technical skill to make great visualizations, it’s important that you make them as meaningful as possible. In this chapter we’ll go over three plot types that are mostly discouraged in the data viz community - heat maps, pie charts and dynamite plots. We’ll understand what the problems are with these plots and what the alternatives are.

    Play Chapter Now
  5. 5

    Case Study

    In this case study, we’ll explore the large, publicly available California Health Interview Survey dataset from 2009. We’ll go step-by-step through the development of a new plotting method - a mosaic plot - combining statistics and flexible visuals. At the end, we’ll generalize our new plotting method to use on a variety of datasets we’ve seen throughout the first two courses.

    Play Chapter Now

Datasets

CHIS adult-response dataset, 2009

Collaborators

Collaborator's avatar
Vincent Vankrunkelsven
Collaborator's avatar
Filip Schouwenaars
Rick Scavetta HeadshotRick Scavetta

Rick Scavetta is a co-founder of Scavetta Academy.

Rick Scavetta is a biologist, workshop trainer, freelance data scientist and co-founder of Scavetta Academy, a company dedicated to helping scientists better understand and visualize their data. Rick's practical, hands-on exposure to a wide variety of datasets has informed him of the many problems scientists face when trying to visualize their data.
See More

Join over 13 million learners and start Data Visualization with ggplot2 (Part 2) today!

Create Your Free Account

GoogleLinkedInFacebook

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.