HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to plot multiple lines on the same graph using R

74,451 views October 30, 2019 28:45

Watch on YouTube
ChannelAshutosh Nandeshwar

Description from the creator

In this tutorial, you will find step-by-step instructions to create line graphs, especially multiple line graphs, and to place legends right on top of the lines. We will use R and ggplot2 to create these plots.

You will learn about a few best data viz practices along the way. To find more dataviz recipes and best-practices go to: ds4fr.nandeshwar.info/

Here are the files used in this tutorial:
-- Complete R code file: arn.la/lineplotsr
-- Apple stocks data file: arn.la/applestock
-- Tech stocks data file: arn.la/techstocks
-- Entertainment stocks data file: arn.la/entstocks

A couple of books mentioned in the tutorial:
-- White Space is Not Your Enemy by Kim Golombisky amzn.to/2E1fRYM
-- Visualizing Data by William Cleveland amzn.to/2n5hYmc

Also, read more about the banking function in R here:
-- rdocumentation.org/packages/ggthemes/versions/3…

An another good paper on banking by Jeff Heer: vis.berkeley.edu/papers/banking/2006-Banking-In…

For more tips, check out: nandeshwar.info/courses

About this tutorial

Ashutosh Nandeshwar published this 28:45 video tutorial on October 30, 2019. It has been watched 74,451 times on YouTube.

Category
Education
Duration
28:45
Published
October 30, 2019
Views
74,451
Likes
375

Tags

Share

This tutorial in other languages