Plotting the VIX Index and TED Spread in R

Premium

In this lesson, will will look at how to create the two graphs in R. Before you start, it is important to setup your basic environment:

Setup Environment

Open RStudio and ensure that you have the basic setup in place.

  • Create a new directory called ‘quantative-trading-strategies-r’ in your computer. We will use this director for all the exercises in this course.
  • Set this directory as your working directory using the setwd() command. You can also check the current working directory using the getwd() command in R console.
  • Use the command CTRL+L to clear the console (Use this whenever you feel the console is cluttered).
  • Create a new R script where we will be writing our R script.
  • Install and load the ggplot2 package by typing the following commands in the console:
Continue Reading
Premium Content

This tutorial is a part of the course Quantitative Trading Strategies in R. This is a premium course. The purchase options for the course are provided below. With this course, you get access to complete course content, source code, practical exercises, and all resources that are a part of the course.

Lifetime Premium Membership
$250
$179

Get unlimited access to all courses and premium content

Join Premium
Individual Course
$7

Purchase this course individually

Purchase CourseView Course Details
What's Included:
Complete access to course content and updates
All downloadable resources
Interactive course quizzes
Practice exercises and sample code
Ad-free learning experience