1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Data Visualization with Julia

Connected

Exercise

Multiple line plots

In this exercise, you will create a figure with two line plots in the same graph, displaying the closing price of two ETF funds, the Invesco QQQ and the iShares Russell 1000 Growth (IWF). This will let you compare these funds directly and identify trends or correlations between them.

The DataFrames and Plots packages have been imported and the DataFrames qqq and iwf have been loaded for you, so feel free to explore them in the shell before starting the task.

Instructions 1/3

undefined XP
  • 1
    • Plot the close of the QQQ fund as a function of price_date.
    • Give the plot a title of "ETF Funds Close Prices".
  • 2
    • Recreate the same plot of close as a function of price_date, but for the iwf DataFrame.
  • 3
    • Plot the close of both funds as a function of qqq.price_date in the same figure, labeling the lines "QQQ" and "IWF".