Session Ready
Exercise

Specifying Data in rbokeh Layers (Part 1)

In this exercise, you will use the economics dataset to create a simple a one-layer plot using ly_lines().

The economics dataset is extracted from US economic time series data, including info about population (pop), personal savings rate (psavert), personal consumption expenditures (pce), unemployment (unemploy), and median duration of unemployment (uempmed).

Note that the economics dataset has been loaded and is available as a dataframe in this session.

Instructions
100 XP
  • Load rbokeh package using library().
  • Explore the economics dataset using str().
  • Plot personal consumption expenditures versus time by passing vectors including pce and date to the y and x arguments. You do not need to use the data argument.