R Tutorial: The world of data visualization

DataCamp · Beginner ·🎨 Image & Video AI ·6y ago

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 SQL Server Tutorial: Date manipulation
SQL Server Tutorial: Date manipulation
DataCamp
2 R Tutorial: Intermediate Interactive Data Visualization with plotly in R
R Tutorial: Intermediate Interactive Data Visualization with plotly in R
DataCamp
3 R Tutorial: Adding aesthetics to represent a variable
R Tutorial: Adding aesthetics to represent a variable
DataCamp
4 R Tutorial: Moving Beyond Simple Interactivity
R Tutorial: Moving Beyond Simple Interactivity
DataCamp
5 Python Tutorial: Why use ML for marketing? Strategies and use cases
Python Tutorial: Why use ML for marketing? Strategies and use cases
DataCamp
6 Python Tutorial: Preparation for modeling
Python Tutorial: Preparation for modeling
DataCamp
7 Python Tutorial: Machine Learning modeling steps
Python Tutorial: Machine Learning modeling steps
DataCamp
8 R Tutorial: The prior model
R Tutorial: The prior model
DataCamp
9 R Tutorial: Data & the likelihood
R Tutorial: Data & the likelihood
DataCamp
10 R Tutorial: The posterior model
R Tutorial: The posterior model
DataCamp
11 R Tutorial: An Introduction to plotly
R Tutorial: An Introduction to plotly
DataCamp
12 R Tutorial: Plotting a single variable
R Tutorial: Plotting a single variable
DataCamp
13 R Tutorial: Bivariate graphics
R Tutorial: Bivariate graphics
DataCamp
14 Python Tutorial: Customer Segmentation in Python
Python Tutorial: Customer Segmentation in Python
DataCamp
15 Python Tutorial: Time cohorts
Python Tutorial: Time cohorts
DataCamp
16 Python Tutorial: Calculate cohort metrics
Python Tutorial: Calculate cohort metrics
DataCamp
17 Python Tutorial: Cohort analysis visualization
Python Tutorial: Cohort analysis visualization
DataCamp
18 R Tutorial: Building Dashboards with flexdashboard
R Tutorial: Building Dashboards with flexdashboard
DataCamp
19 R Tutorial: Anatomy of a flexdashboard
R Tutorial: Anatomy of a flexdashboard
DataCamp
20 R Tutorial: Layout basics
R Tutorial: Layout basics
DataCamp
21 R Tutorial: Advanced layouts
R Tutorial: Advanced layouts
DataCamp
22 Python Tutorial: Time Series Analysis in Python
Python Tutorial: Time Series Analysis in Python
DataCamp
23 Python Tutorial: Correlation of Two Time Series
Python Tutorial: Correlation of Two Time Series
DataCamp
24 Python Tutorial: Simple Linear Regressions
Python Tutorial: Simple Linear Regressions
DataCamp
25 Python Tutorial: Autocorrelation
Python Tutorial: Autocorrelation
DataCamp
26 R Tutorial: The gapminder dataset
R Tutorial: The gapminder dataset
DataCamp
27 R Tutorial: The filter verb
R Tutorial: The filter verb
DataCamp
28 R Tutorial: The arrange verb
R Tutorial: The arrange verb
DataCamp
29 R Tutorial: The mutate verb
R Tutorial: The mutate verb
DataCamp
30 R Tutorial: What is cluster analysis?
R Tutorial: What is cluster analysis?
DataCamp
31 R Tutorial: Distance between two observations
R Tutorial: Distance between two observations
DataCamp
32 R Tutorial: The importance of scale
R Tutorial: The importance of scale
DataCamp
33 R Tutorial: Measuring distance for categorical data
R Tutorial: Measuring distance for categorical data
DataCamp
34 Python Tutorial: Plotting multiple graphs
Python Tutorial: Plotting multiple graphs
DataCamp
35 Python Tutorial: Customizing axes
Python Tutorial: Customizing axes
DataCamp
36 Python Tutorial: Legends, annotations, & styles
Python Tutorial: Legends, annotations, & styles
DataCamp
37 Python Tutorial: Introduction to iterators
Python Tutorial: Introduction to iterators
DataCamp
38 Python Tutorial: Playing with iterators
Python Tutorial: Playing with iterators
DataCamp
39 Python Tutorial: Using iterators to load large files into memory
Python Tutorial: Using iterators to load large files into memory
DataCamp
40 SQL Tutorial: Introduction to Relational Databases in SQL
SQL Tutorial: Introduction to Relational Databases in SQL
DataCamp
41 SQL Tutorial: Tables: At the core of every database
SQL Tutorial: Tables: At the core of every database
DataCamp
42 SQL Tutorial: Update your database as the structure changes
SQL Tutorial: Update your database as the structure changes
DataCamp
43 Python Tutorial: Classification-Tree Learning
Python Tutorial: Classification-Tree Learning
DataCamp
44 Python Tutorial: Decision-Tree for Classification
Python Tutorial: Decision-Tree for Classification
DataCamp
45 Python Tutorial: Decision-Tree for Regression
Python Tutorial: Decision-Tree for Regression
DataCamp
46 Python Tutorial: Census Subject Tables
Python Tutorial: Census Subject Tables
DataCamp
47 Python Tutorial: Census Geography
Python Tutorial: Census Geography
DataCamp
48 Python Tutorial: Using the Census API
Python Tutorial: Using the Census API
DataCamp
49 R Tutorial: A/B Testing in R
R Tutorial: A/B Testing in R
DataCamp
50 R Tutorial: Baseline Conversion Rates
R Tutorial: Baseline Conversion Rates
DataCamp
51 R Tutorial: Designing an Experiment - Power Analysis
R Tutorial: Designing an Experiment - Power Analysis
DataCamp
52 R Tutorial: Introduction to qualitative data
R Tutorial: Introduction to qualitative data
DataCamp
53 R Tutorial: Understanding your qualitative variables
R Tutorial: Understanding your qualitative variables
DataCamp
54 R Tutorial: Making Better Plots
R Tutorial: Making Better Plots
DataCamp
55 SQL Tutorial: OLTP and OLAP
SQL Tutorial: OLTP and OLAP
DataCamp
56 SQL Tutorial: Storing data
SQL Tutorial: Storing data
DataCamp
57 SQL Tutorial: Database design
SQL Tutorial: Database design
DataCamp
58 Python Tutorial: Introduction to spaCy
Python Tutorial: Introduction to spaCy
DataCamp
59 Python Tutorial: Statistical Models
Python Tutorial: Statistical Models
DataCamp
60 Python Tutorial: Rule-based Matching
Python Tutorial: Rule-based Matching
DataCamp

This video tutorial introduces the basics of data visualization in R, covering various graphic systems and techniques for creating effective visualizations. Viewers will learn how to create simple scatter plots, conditional scatter plots, and more complex data displays using base graphics, grid graphics, lattice graphics, and ggplot2.

Key Takeaways
  1. Load the necessary R packages
  2. Create a simple scatter plot using base graphics
  3. Use grid graphics to create a more complex plot
  4. Construct a conditional scatter plot using lattice graphics
  5. Build a complex data display using ggplot2
💡 Effective data visualization is crucial for understanding and communicating insights from data, and R provides a wide range of tools and techniques for creating high-quality visualizations.

Related Reads

📰
I Tried to Replace My Image Workflow with an AI Photo Generator. Three Times It Failed. Once It Didn't.
Learn from an experiment replacing an image workflow with an AI photo generator, and discover the challenges and one success story
Dev.to AI
📰
The Best Free AI Image Generators Better Than ChatGPT and Gemini
Discover free AI image generators that outperform ChatGPT and Gemini for specific workflows, offering superior photorealism and graphic design capabilities
Dev.to AI
📰
50+ Sequential Images, One Prompt in Codex
Learn to generate sequential images with Codex using a single prompt and understand the limitations of this approach
Medium · ChatGPT
📰
How can I batch-generate 3D assets from prompts or images using an API, and which 3D generation APIs support batch generation?
Learn to batch-generate 3D assets from prompts or images using APIs for efficient pipeline creation
Reddit r/artificial
Up next
Logo Animations with AI 🤩 your Brand / Shop Promotions with AI 🚀 AI Videos Free #ai #aivideo
Raj Photo Editing and Much More
Watch →