Data Visulaization

Code for Quiz 9.

  1. Load R packages we will use.
  1. Quiz questions

Question: e_charts-1

E-charts- 1

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 - assign output to df

Create a plot with the df data

# A tibble: 1 x 8
  symbol date        open  high   low close   volume adjusted
  <chr>  <date>     <dbl> <dbl> <dbl> <dbl>    <dbl>    <dbl>
1 MSFT   2019-08-05  133.  134.  131.  132. 42749600     130.

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