R Tutorial: The world of data visualization
Skills:
Data Literacy80%
Key Takeaways
This video tutorial covers the basics of data visualization in R, including exploratory and explanatory visualizations, using various graphic systems such as base graphics, grid graphics, lattice graphics, and ggplot2.
Full Transcript
hi I'm Ron Pearson and I will be your instructor for this course I've been using our or its commercial near equivalent s+ for a long time to analyze data in many different fields when we're faced with a new data set especially a large one one of the first questions we need to ask is what's in it because our ability to see patterns is very highly developed an effective way to approach this question is through graphical data displays or data visualizations it is important to distinguish between exploratory visualizations designed to help us see what's in a data set and explanatory visualizations designed to help others see what we have found as we will see our provides many useful tools for creating data visualizations of both types the key to a useful exploratory visualization is keeping all of the potentially relevant details the objective is to help you see what is in the data and the key practical question is how much detail can you see and interpret the plot around this slide provides a representative example it summarizes the relationships between the four variables in the chicke weight data frame in ARS built-in data sets package from these plots we can see for example that weight varies systematically with time and that the chicks were assigned to four different diets explanatory data visualizations show others what you have found in the data this means you must make editorial decisions what features do you want to highlight for emphasis what features are distracting or confusing and should be eliminated here is an explanatory plot constructed from the cars 93 data frame in the mass package emphasizing that highway mileage always exceeds city mileage using techniques like reference lines and some flower plots that you will learn about in the course to visualize data are supports for graphic systems base graphics is the easiest to learn and is the focus of this course grid graphics provides a powerful set of modules for building other tools lattice graphics is a general-purpose graphic system based on grid graphics and ggplot2 implements the grammar of graphics in our and is also based on grid graphics this first example uses the base graphics plot function to generate a simple scatter plot of calories versus sugars from the US serial data frame in the mass package the second example uses grid graphics to create essentially the same plot grid graphics offers much greater power and flexibility than base graphics but this comes at the price of a steeper learning curve and greater effort required to create simple plots like this one this is the reason that the grid graphic system is mainly used by our package developers to create special visualizations or other graphic systems like the lattice and ggplot2 packages this third example illustrates the use of the lattice package which makes it easy to construct conditional scatter plots like the one shown here these plots allow us to see how the relationship between the variables mpg city and horsepower from the cars 93 data frame change for different values of the cylinders variable finally this fourth example gives a simple illustration of how the ggplot2 package can be used to build up more complex data displays by adding new details to a simple plot or modifying those details now it's your turn the next few exercises will give you a chance to use the plot function for yourself and begin learning what you can do with base graphics in our
Original Description
Want to learn more? Take the full course at https://learn.datacamp.com/courses/data-visualization-in-r at your own pace. More than a video, you'll learn hands-on coding & quickly apply skills to your daily work.
---
Hi. I'm Ron Pearson and I will be your instructor for this course. I have been using R or its commercial near-equivalent S-plus for a long time to analyze data in many different fields.
When we are faced with a new dataset, especially a large one, one of the first questions we need to ask is "what's in it?" Because our ability to see patterns is very highly developed, an effective way to approach this question is through graphical data displays or data visualization.
It is important to distinguish between exploratory visualizations, designed to help us see what's in a dataset, and explanatory visualizations, designed to help others see what we have found. As we will see, R provides many useful tools for creating data visualizations of both types.
The key to a useful exploratory visualization is keeping all of the potentially relevant details: the objective is to help you see what is in the data and the key practical question is "how much detail can you see and interpret?"
The plot array on this slide provides a representative example: it summarizes the relationships between the four variables in the ChickWeight data frame in R's built-in datasets package. From these plots, we can see, for example, that weight varies systematically with time and that the chicks were assigned to four different diets.
Explanatory data visualizations show others what you have found in the data. This means you must make editorial decisions: what features do you want to highlight for emphasis? What features are distracting or confusing and should be eliminated?
Here's an explanatory plot, constructed from the Cars93 data frame in the MASS package, emphasizing that highway mileage always exceeds city mileage, using techniques like reference lines and sunflower plots tha
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from DataCamp · DataCamp · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
SQL Server Tutorial: Date manipulation
DataCamp
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
R Tutorial: Adding aesthetics to represent a variable
DataCamp
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
Python Tutorial: Preparation for modeling
DataCamp
Python Tutorial: Machine Learning modeling steps
DataCamp
R Tutorial: The prior model
DataCamp
R Tutorial: Data & the likelihood
DataCamp
R Tutorial: The posterior model
DataCamp
R Tutorial: An Introduction to plotly
DataCamp
R Tutorial: Plotting a single variable
DataCamp
R Tutorial: Bivariate graphics
DataCamp
Python Tutorial: Customer Segmentation in Python
DataCamp
Python Tutorial: Time cohorts
DataCamp
Python Tutorial: Calculate cohort metrics
DataCamp
Python Tutorial: Cohort analysis visualization
DataCamp
R Tutorial: Building Dashboards with flexdashboard
DataCamp
R Tutorial: Anatomy of a flexdashboard
DataCamp
R Tutorial: Layout basics
DataCamp
R Tutorial: Advanced layouts
DataCamp
Python Tutorial: Time Series Analysis in Python
DataCamp
Python Tutorial: Correlation of Two Time Series
DataCamp
Python Tutorial: Simple Linear Regressions
DataCamp
Python Tutorial: Autocorrelation
DataCamp
R Tutorial: The gapminder dataset
DataCamp
R Tutorial: The filter verb
DataCamp
R Tutorial: The arrange verb
DataCamp
R Tutorial: The mutate verb
DataCamp
R Tutorial: What is cluster analysis?
DataCamp
R Tutorial: Distance between two observations
DataCamp
R Tutorial: The importance of scale
DataCamp
R Tutorial: Measuring distance for categorical data
DataCamp
Python Tutorial: Plotting multiple graphs
DataCamp
Python Tutorial: Customizing axes
DataCamp
Python Tutorial: Legends, annotations, & styles
DataCamp
Python Tutorial: Introduction to iterators
DataCamp
Python Tutorial: Playing with iterators
DataCamp
Python Tutorial: Using iterators to load large files into memory
DataCamp
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
SQL Tutorial: Tables: At the core of every database
DataCamp
SQL Tutorial: Update your database as the structure changes
DataCamp
Python Tutorial: Classification-Tree Learning
DataCamp
Python Tutorial: Decision-Tree for Classification
DataCamp
Python Tutorial: Decision-Tree for Regression
DataCamp
Python Tutorial: Census Subject Tables
DataCamp
Python Tutorial: Census Geography
DataCamp
Python Tutorial: Using the Census API
DataCamp
R Tutorial: A/B Testing in R
DataCamp
R Tutorial: Baseline Conversion Rates
DataCamp
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
R Tutorial: Introduction to qualitative data
DataCamp
R Tutorial: Understanding your qualitative variables
DataCamp
R Tutorial: Making Better Plots
DataCamp
SQL Tutorial: OLTP and OLAP
DataCamp
SQL Tutorial: Storing data
DataCamp
SQL Tutorial: Database design
DataCamp
Python Tutorial: Introduction to spaCy
DataCamp
Python Tutorial: Statistical Models
DataCamp
Python Tutorial: Rule-based Matching
DataCamp
More on: Data Literacy
View skill →Related Reads
📰
📰
📰
📰
I Tried to Replace My Image Workflow with an AI Photo Generator. Three Times It Failed. Once It Didn't.
Dev.to AI
The Best Free AI Image Generators Better Than ChatGPT and Gemini
Dev.to AI
50+ Sequential Images, One Prompt in Codex
Medium · ChatGPT
How can I batch-generate 3D assets from prompts or images using an API, and which 3D generation APIs support batch generation?
Reddit r/artificial
🎓
Tutor Explanation
DeepCamp AI