Data Visualization

Code for Quiz 9.

  1. Load the R packages we will use.
  1. Quiz Questions

Question: e_charts-1

Create a bar chart that shows the average hours Americans spend on five activities by year. Use the timeline argument to create an animation that will animate through the years.

e_charts-1

Start with spend_time


Question: echarts-2

Create a line chart for the activities that American spend time on.

Start with spend_time


Question: modify slide 82


Question: tidyquant

Modify the tidyquant example in the video

Retrieve stock price for Microsoft, ticker: MSFT, using tq_get

*from 2019-08-01 to 2020-07-28

Create a plot with the df data

Save the previous plot to preview.png and add to the yaml chunk at the top