Visualization Best Practices in R
Learn to effectively convey your data with an overview of common charts, alternative visualization types, and perception-driven style enhancements.
Start Course for Free4 hours13 videos49 exercises17,433 learnersStatement of Accomplishment
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.Training 2 or more people?
Try DataCamp for BusinessLoved by learners at thousands of companies
Course Description
This course will help you take your data visualization skills beyond the basics and hone them into a powerful member of your data science toolkit. Over the lessons we will use two interesting open datasets to cover different types of data (proportions, point-data, single distributions, and multiple distributions) and discuss the pros and cons of the most common visualizations. In addition, we will cover some less common alternatives visualizations for the data types and how to tweak default ggplot settings to most efficiently and effectively get your message across.
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.In the following Tracks
Data Visualization in R
Go To Track- 1
Proportions of a whole
FreeIn this chapter, we focus on visualizing proportions of a whole; we see that pie charts really aren't so bad, along with discussing the waffle chart and stacked bars for comparing multiple proportions.
Grammar of Graphics intro50 xpFamiliarizing with disease data100 xpWarming up data-wrangling100 xpThe pie chart and its friends50 xpThe infamous P-I-E100 xpCleaning up the pie100 xpHow about a waffle?100 xpWhen to use bars50 xpBasic stacked bars100 xpOrdering stack for readability100 xpCategorical x-axis100 xp - 2
Point data
We shift our focus now to single-observation or point data and go over when bar charts are appropriate and when they are not, what to use when they are not, and general perception-based enhancements for your charts.
Bars and dots: point data50 xpAre bars appropriate?50 xpWorking with geom_col100 xpWrangling geom_bar100 xpPoint charts50 xpOrdered point chart100 xpAdding visual anchors100 xpFaceting to show structure.100 xpTuning your charts50 xpLet's flip some axes100 xpCleaning up the bars100 xpConverting to point chart100 xp - 3
Single distributions
We now move on to visualizing distributional data, we expose the fragility of histograms, discuss when it is better to shift to a kernel density plots, and how to make both plots work best for your data.
Importance of distributions50 xpOrienting with the data100 xpLooking at all data100 xpChanging y-axis to density100 xpHistogram nuances50 xpAdjusting the bin numbers100 xpMore bars100 xpBin width by context100 xpThe kernel density estimator50 xpHistogram to KDE100 xpPutting a rug down100 xpKDE with lots of data100 xp - 4
Comparing distributions
Finishing off we take a look at comparing multiple distributions to each other. We see why the traditional box plots are very dangerous and how to easily improve them, along with investigating when you should use more advanced alternatives like the beeswarm plot and violin plots.
Intro to comparing distributions50 xpA simple boxplot100 xpAdding some jitter100 xpFaceting to show all colors100 xpBeeswarms and violins50 xpYour first beeswarm100 xpFiddling with a violin plot100 xpViolins with boxplots100 xpComparing lots of distributions100 xpComparing spatially-related distributions50 xpA basic ridgeline plot100 xpCleaning up your ridgelines100 xpMaking it rain (data points)100 xpWrap-up50 xp
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.In the following Tracks
Data Visualization in R
Go To Trackcollaborators
prerequisites
Introduction to Data Visualization with ggplot2Nicholas Strayer
See MoreBiostatistician at Vanderbilt
What do other learners have to say?
Join over 15 million learners and start Visualization Best Practices in R today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.