Skip to main content

Interactive Data Visualization with plotly in R

Learn to create interactive graphics entirely in R with plotly.

Start Course for Free
4 Hours15 Videos54 Exercises8,054 Learners4600 XPInteractive Data Visualization Track

Create Your Free Account



By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

Interactive graphics allow you to manipulate plotted data to gain further insight. 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 the R programming language. Along the way, you will review data visualization best practices and be introduced to new plot types such as scatterplot matrices and binned scatterplots.

  1. 1

    Introduction to plotly


    In 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.

    Play Chapter Now
    What is plotly?
    50 xp
    A follow-up on the course intro
    50 xp
    Converting a ggplot2 scatterplot
    100 xp
    Univariate graphics
    50 xp
    100 xp
    Bar charts
    100 xp
    Bivariate graphics
    50 xp
    A first scatterplot
    100 xp
    A first stacked bar chart
    100 xp
    100 xp
  2. 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.

    Play Chapter Now
  3. 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.

    Play Chapter Now

In the following tracks

Interactive Data Visualization


dcamposlizDavid CamposchesterChester IsmayshoninouyeShon Inouye
Adam Loy Headshot

Adam Loy

Assistant 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.
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA