Skip to main content

Visualizing Time Series Data in R

Learn how to visualize time series in R, then practice with a stock-picking case study.

Start Course for Free
4 Hours11 Videos45 Exercises12,053 Learners3550 XPQuantitative Analyst TrackTime Series 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

As the saying goes, “A chart is worth a thousand words”. This is why visualization is the most used and powerful way to get a better understanding of your data. After this course you will have a very good overview of R time series visualisation capabilities and you will be able to better decide which model to choose for subsequent analysis. You will be able to also convey the message you want to deliver in an efficient and beautiful way.

  1. 1

    R Time Series Visualization Tools


    This chapter will introduce you to basic R time series visualization tools.

    Play Chapter Now
    Refresher on xts and the plot() function
    50 xp
    plot() function quiz
    50 xp
    plot() function - basic parameters
    100 xp
    plot() function - basic parameters (2)
    100 xp
    Control graphic parameters
    100 xp
    Graphic parameters quiz
    50 xp
    Other useful visualizing functions
    50 xp
    Adding an extra series to an existing chart
    100 xp
    Highlighting events in a time series
    100 xp
    Highlighting a specific period in a time series
    100 xp
    A fancy stock chart
    100 xp
    A fancy stock chart (2)
    100 xp
  2. 2

    Univariate Time Series

    Univariate plots are designed to learn as much as possible about the distribution, central tendency and spread of the data at hand. In this chapter you will be presented with some visual tools used to diagnose univariate times series.

    Play Chapter Now
  3. 3

    Multivariate Time Series

    What to do if you have to deal with multivariate time series? In this chapter, you will learn how to identify patterns in the distribution, central tendency and spread over pairs or groups of data.

    Play Chapter Now
  4. 4

    Case study: Visually selecting a stock that improves your existing portfolio

    Let's put everything you learned so far in practice! Imagine you already own a portfolio of stocks and you have some spare cash to invest, how can you wisely select a new stock to invest your additional cash? Analyzing the statistical properties of individual stocks vs. an existing portfolio is a good way of approaching the problem.

    Play Chapter Now

In the following tracks

Quantitative AnalystTime Series


dvaughan1130Davis VaughanloreLore Dirick
Arnaud Amsellem Headshot

Arnaud Amsellem

Quantitative Trader and creator of the R Trader blog

Arnaud has over 20 years of experience as a quantitative trader. He is creator and author of the R Trader blog (
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