Exercise

Stock price display

Now that we have a data frame nested by stock symbol, let's make a Trelliscope display with a plot for each stock. In this exercise, we use just the first 10 stocks in the by_symbol dataset we created in the previous exercise and create an "open-high-low-close" plot, a plot similar to candlestick plots. The available by_symbol dataset available in your session has already been subsetted to the first 10 stocks.

Instructions 1/3

undefined XP
    1
    2
    3

A function to create the "open-high-low-close" plot, ohlc_plot() has been provided that operates on the data column of the by_symbol data frame. Use the map_plot() function to add a new variable panel to the data that contains these plots.