Interactive Data Visualization with plotly in R
Learn how to use plotly in R to create interactive data visualizations to enhance your data storytelling.
Start Course for Free4 hours15 videos54 exercises13,102 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
Build Interactive Data Visualizations in plotly
Interactive graphics allow you to manipulate plotted data to gain further insights. As an example, an interactive graphic would allow you to zoom in on a subset of your data without the need to create a new plot. In this course, you will learn how to create and customize interactive graphics in plotly using R.Get Started Using plotly
You’ll start the course with an introduction to plotly and a view of different plots you can make using this R package, including histograms, bar charts, bivariate graphics, scatterplots, and boxplots. You’ll also learn how to convert a ggplot2 scatterplot into plotly so that you can enhance your graphics and dashboards.Explore Creating plotly Plots and Dashes
The next two chapters of the course show you how you can customize your graphics to build the perfect dashboard, and even add hover-over information to add detail and depth. Then you’ll move on to advanced charts that visualize complex relationships and larger datasets. By completing this course, you’ll be able to create manual and automated faceting, binned scatterplots, and your first scatter plot matrix (SPLOM).Create Visualizations with Real-World Data
The final chapter of this course uses your new-found plotly skills to visualize the results of the 2018 US elections. You’ll create the first interactive plotly dash in your portfolio and learn how to create maps using this valuable data visualization tool.For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and moreIn the following Tracks
Interactive Data Visualization in R
Go To Track- 1
Introduction to plotly
FreeIn this chapter, you will receive an introduction to basic graphics with plotly. You will create your first interactive graphics, displaying both univariate and bivariate distributions. Additionally, you will discover how to easily convert ggplot2 graphics to interactive plotly graphics.
- 2
Styling and customizing your graphics
In this chapter, you will learn how to customize the appearance of your graphics and use opacity, symbol, and color to clarify your message. You will also learn how to transform axes, label your axes, and customize the hover information of your graphs.
Customize your traces50 xpColor and opacity100 xpAlternative color formats100 xpSize and symbol100 xpThoughtful use of color50 xpAdding a third variable100 xpBeyond color: Symbols100 xpTransforming a color scale100 xpHover info50 xpRemoving a piece of hover info100 xpAdding to hoverinfo100 xpCustom hoverinfo100 xpCustomizing your layout50 xpPolishing a scatterplot100 xpMatching a theme100 xp - 3
Advanced charts
In this chapter, you move past basic plotly charts to explore more-complex relationships and larger datasets. You will learn how to layer traces, create faceted charts and scatterplot matrices, and create binned scatterplots.
Layering traces50 xpAdding a linear smoother100 xpOverlayed density plots100 xpSubplots50 xpManual faceting100 xpAutomated faceting100 xpPlot and axis titles100 xpPolishing axis titles100 xpScatterplot matrices50 xpYour first SPLOM100 xpCustomizing color100 xpTweaking the appearance100 xpBinned scatterplots50 xpBinning a scatterplot100 xp - 4
Case Study
In the final chapter, you use your plotly toolkit to explore the results of the 2018 United States midterm elections, learning how to create maps in plotly along the way.
Introduction to the 2018 election data50 xpDid voters turn out?100 xpAdding a reference line100 xpWhich state had the highest turnout?100 xpHow much was spent on Senate races?100 xpWhich candidate spent the most?100 xpChoropleth maps50 xpMapping change in voter turnout100 xpMapping Senate winners100 xpAdding points to a map100 xpGeo layout100 xpFrom polygons to maps50 xpMapping Senate winners, redux100 xpA county-level choropleth map100 xpWrap-up50 xp
For Business
Training 2 or more people?
Get your team access to the full DataCamp library, with centralized reporting, assignments, projects and moreIn the following Tracks
Interactive Data Visualization in R
Go To Trackcollaborators
prerequisites
Introduction to the TidyverseAdam Loy
See MoreAssistant Professor of Statistics at Carleton College
Adam is an assistant professor of statistics at Carleton College where he teaches courses in statistics in data science. His research interests lie in statistical graphics and computing, R development, and statistics/data science education. Find out more on Adam's webpage.
What do other learners have to say?
FAQs
Join over 15 million learners and start Interactive Data Visualization with plotly 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.