Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Applied Data Visualization with R and ggplot2
Rating: 4.0 out of 5(10 ratings)
54 students

Applied Data Visualization with R and ggplot2

Create useful, elaborate, and visually-appealing plots using this open source package
Last updated 1/2019
English
English [Auto],

What you'll learn

  • Set up the R environment, RStudio, and understand the structure of ggplot2
  • Distinguish variables and use best practices to visualize them
  • Change visualization defaults to reveal more information about data
  • Implement the grammar of graphics in ggplot2 such as scales and faceting
  • Build complex and aesthetic visualizations with ggplot2 analysis methods
  • Logically and systematically explore complex relationships
  • Compare variables in a single visual, with advanced plotting methods

Course content

3 sections • 26 lectures • 2h 17m total length
  • Course Overview1:07

    Let’s begin the course with the content coverage.     

  • Installation and Setup2:04

    Before we dive deep into the concepts and practice exercises, let us first install R and RStudio to get started.   

  • Lesson Overview1:10

    Let us begin with the first lesson and understand what we are going to cover in our learning journey.

  • Introduction to ggplot217:01

    ggplot2 is a visualization package in R. It was developed in 2005 and it uses the concept of the ‘Grammar of Graphics’ to build a plot in layers and scales. This is the syntax used for the different components (aesthetics) of a geometric object. It also involves the grammatical rules for creating a visualization. Let us learn more about it with the following topics:

    • Introduction to ggplot2

    • Loading and Exploring a Dataset Using R Functions

    • The Main Concepts of ggplot2

    • Types of Variables

    • Exploring Datasets

  • Making Your First Plot4:13

    The ggplot2 function qplot is similar to the basic plot () function from the R package. It can be used to build and combine a range of useful graphs; however, it does not have the same flexibility as the ggplot() function. Let us now create our first plot with qplot and R.   

  • Geometric Objects9:40

    The geometric objects in ggplot2 are visual structures that are used to visualize data. They can be lines, bars, points, and so on. Geometric objects are constructed from datasets. Before we construct some geometric objects, let's examine some datasets to understand the different kinds of variables. Here are the topics that we will cover now:

    • Geometric Objects

    • Analyzing Different Datasets

    • Histograms

    • Examples of Unimodal and Bimodal Distribution

    • Creating a Histogram Using qplot and ggplot

  • Bar Charts9:49

    Bar charts are more general than histograms, and they can represent both discrete and continuous data. They can even be used to represent categorical variables. A bar chart uses a horizontal or vertical rectangular bar that levels off at an appropriate level. A bar chart can be used to represent various quantities, such as frequency counts and percentages. Let us learn this with the following exercises:

    • Create Bar Charts

    • Create a One-Dimensional Bar Chart

    • Create a Two-dimensional Bar Chart

  • BoxPlots7:35

    A boxPlot is a standard way of displaying the distribution of data based on a five-number summary: minimum, first quartile, median, third quartile, and maximum. Boxplots can represent how a continuous variable is distributed for different categories; one of the axes will be a categorical variable, while the other will be a continuous variable. Let us begin with the following exercises:

    • Analyze and Create BoxPlots

    • Create a BoxPlot for a Given Dataset

    • Create Scatter Plots

  • Line Charts3:56

    A line chart shows the relationship between two variables; it is similar to a scatter plot, but the points are connected by line segments. In this section, we will learn more about Line Charts in detail.   

  • The Grammar of Graphics9:27

    The Grammar of Graphics is the language used to describe various components of a graphic that represents data in visualization. Let us understand the following concepts:

    • The Grammar of Graphics

    • Rebinning

    • Analysis of Histograms

    • Using the Grammar of Graphics to change Boxplot Defaults

  • Lesson Summary0:32

    Summarize your learning from this lesson.   

  • Test Your Knowledge

Requirements

  • It is assumed that you know the basics of the R language and its commands and objects.

Description

Applied Data Visualization  with R and ggplot2 introduces you to the world of data visualization by  taking you through the basic features of ggplot2. To start with, you'll  learn how to set up the R environment, followed by getting insights into  the grammar of graphics and geometric objects before you explore the  plotting techniques.

You'll discover what layers, scales, coordinates, and themes are, and  study how you can use them to transform your data into aesthetical  graphs. Once you've grasped the basics, you'll move on to studying  simple plots such as histograms and advanced plots such as superimposing  and density plots. You'll also get to grips with plotting trends,  correlations, and statistical summaries.

By the end of this course, you'll have created data visualizations that will impress your clients. 

About the Author

Chris DallaVilla is the  founder and CEO of VALID., an independent marketing consulting practice  specializing in providing data-driven solutions that help chief  marketing officers and their teams strengthen their planning and  execution, and drive results. Chris has expertise in digital and social  media marketing, as well as certifications in Agile, Google AdWords, and  Google Analytics. He studied computer science at Harvard University,  design technology at Massachusetts College of Art and Design, and  advertising and marketing communications at the Questrom School of  Business at Boston University.

Tania Moulik has a PhD in particle physics. She has worked at CERN, the European Organization for Nuclear Research, and on the Tevatron at Fermi National Accelerator Laboratory in IL, USA. She has years of programming experience in C++, Python, and R. She has also worked in the feld of big data and has worked with technologies such as grid computing. She has a passion for data analysis and would like to share her passion with others who would like to delve into the world of data analytics. She especially likes R and ggplot2 as a powerful analytics package. 

Who this course is for:

  • Applied Data Visualization with R and ggplot2 is for you if you are a professional working with data and R. This course is also for students who want to enhance their data analysis skills by adding informative and professional visualizations.