HW 5 - Part 2 Instructions

Due 4/16/25

Introduction

HW Assignment 5 - Part 2 will give you a better understanding of

  • working with and updating a project in Posit Cloud.

  • adding images to enhance your dashboard.

  • evaluating choices between plot options to improve viewer understanding.

  • updating data sources and citations for an ongoing project.

NOTES:

  • In this assignment, you will be modifying and expanding the dashboard you created in HW 5 - Part 1 and modifying accompanying text.

    • You can use AI to draft text, but you should edit and humanize the text.
  • You will also gain experience in adding links for data sources and citing R packages.

  • You will NOT have to write code to create new plots. This code has been provided so that you can compare plot options and have additional code examples for your final projects.

Instructions

HW 5.2 - First Steps

Steps to Follow:

  1. Click on provided link to open the Cloud Project that contains a completed version of HW 5 - Part 1.

  2. Make a copy of this project folder and rename it HW 5 - Part 2 - FirstName Lastname. Leave the original version in the project in case you need it.

  3. Open your new project, rename the files with your name and update the README with your name in the appropriate places.

  4. Open .qmd file within project, install packages specified, and change the title to HW 5 - Part 2 in the header.

    • Note this install is slow and will take a few minutes.

    • Intiating a new project in Post Cloud is like installing R and RStudio on your laptop for the first time.

  5. Add the following TWO packages to the pacman::p_load in the setup chunk: dygraphs, gridExtra

  6. Run the setup which will also be slow and take few minutes (see above).

  7. Upload the provided .png file, HW5_Pt2_Page1_Graphic.png to the img folder in this project.

  8. You are also given two datsets are in a zipped folder labeled HW 5 - Part 2 - NewData.zip. Upload this zipped folder to the data folder for this project and the data files will appear.

    • statistic_id273883_netflixs-quarterly-revenue-2013-2021.csv

    • statistic_id273884_netflixs-quarterly-net-income-2013-2021.csv

  9. Upload the zipped HW 5 - Part 2 - Text Files.zip zipped folder to the main project folder.

HW 5.2 - New Page 1

Adding an Image Page

NOTES:

  • Often when publishing a dashboard or a website, you may want to have pages or parts of pages that have image or info-graphic. This addition demonstrates how to do that in Quarto dashboard.

  • The provided image was composed in Powerpoint and then was uploaded to the img folder (Step 7 above).

  • Please see HW 5 - Part 2 Demo videos for demo on how to add this page to your dashboard.

Steps to Follow:

  1. Copy and paste all of the text and code from the text file labeled Page 1 (in the provided HW 5 - Part 2 - Text Files folder) after the the data management chunks and before the original first page.

NOTE: This code will only work if the image file HW5_Pt2_Page1_Graphic.png is in your img folder.

  1. Edit and/or add to the text section of this page discussing Netflix and AMC. You are welcome to use AI to help you generate text, but you should edit and personalize the text.

  2. Render your dashboard again to confirm you now have a new Page 1 with no title.

HW 5.2 - New Pages 2 and 3

Stock Plot Types

Notes:

  • Page 2 (formerly Page 1) will be left as is but the title will be renamed to be

Nextflix and AMC HighCharts

  • Page 3 will replicate Page 2 but with dygraphs instead of highcharts and without the value boxes.

  • In a final dashboard, you would not include BOTH of these plot options because they are redundant.

  • Both plot options are included your HW 5 - Part 2 dashboard for comparison purposes.

  • Please see HW 5 - Part 2 Demo videos for demo on how to add this page to your dashboard.

Steps to Follow:

  1. Create a new Page 3 after the HighCharts Plots Page (new Page 2).
  • Copy and paste all of the text and code from the text file labeled Page 3 (in the provided HW 5 - Part 2 - Text Files folder) after the new Page 2.
  1. Replace the Add text here with text about Netflix and AMC or information about dygraphs and highcharts in R. You are welcome to use AI to help you generate text, but you should edit and personalize the text.
  • The point of this is to familiarize yourself with adding text in a dashboard and using AI to augment your data curation.

HW 5.2 - New Page 4

Bar Plot and Table

Leave this page as is

HW 5.2 - New Page 5

Area Plot

Leave this page as is

HW 5.2 - New Page 6

Grid of Pie Charts

Steps to Follow

  1. Create a new page 6 after the new Page 5.
  • Copy and paste all of the text and code from the text file labeled Page 6 (in the provided HW 5 - Part 2 - Text Files folder) after the new Page 5.
  1. Add text to complete or modify the incomplete sentence that explains how the area plot and grid of pie charts differ.

HW 5.2 - New Page 7

Line and Area Plots

The new page 7 will show revenue and expenditures data for netflix in a line plot and in an area plot. These two plots are redundant but you are asked to provide some text comparing the two plots.

Steps to Follow

  1. Create a new page 7 after the new Page 6.
  • Copy and paste all of the text and code from the text file labeled Page 7 (in the provided HW 5 - Part 2 - Text Files folder) after the new Page 6.
  1. In the text section where it says The plots below ..., complete the text comparing the two plots. You are welcome to use AI to help you generate this text, but you are responsible for editing and personalizing the text so that it is relevant to these data and the two plots.

HW 5.2 - New Page 8

The following instructions will give you practice updating and managing data sources and citations in a dashboard.

You will be required to have an complete About page in your group project dashboard and you will include citations in your memos.

Updating the About Page.

Steps to Follow

  1. Reformat and correct the data sources line to be a bullet list with grammar corrected and Statista added. Note at dataset is singular but data are plural. Correct updated format:

The data used to create this dashboard were downloaded from:

  • [Yahoo Finance](https://finance.yahoo.com/)

  • [Kaggle](https://www.kaggle.com/)

  • [Statista](https://www.statista.com/)

  1. In the R console, type citation("gridExtra") and find the part of the citation that is formatted for a document. Copy and paste that citation (Auguie 2017) in the correct place in the citation list alphabetically.

  2. In the R console, type citation("dygraphs") and find the part of the citation that is formatted for a document. Copy and paste that citation (Vanderkam et al. 2018) in the correct place in the citation list alphabetically.

  3. Note that the provided tidyquant citation is outdated. In the R console, type citation("tidyquant") and find the part of the citation that is formatted for a document. Copy and paste that citation (Dancho and Vaughan 2025) in the correct place in the citation list alphabetically.

HW 5.2 - Final Steps

  1. Once all provided code is added in the correct locations and text has been added where specified, render the Quarto file to create an updated dashboard
  • The updated dashboard should have 8 pages including the front image page (without a title) and the final About page.
  1. verify that you have the following required files in your project folder:
  • HW5_Part2_FirstName_LastName.qmd Quarto (.qmd) file to create dashboard saved with your name.

  • HW5_Part2_FirstName_LastName.html dashboard file saved with your name.

  • HW 5 - Part 2 FirstName LastName.Rproj file

  • data folder containing 3 data (.csv) files:

    • netflix_titles.csv

    • statistic_id273883_netflixs-quarterly-revenue-2013-2021.csv

    • statistic_id273884_netflixs-quarterly-net-income-2013-2021.csv

  • img folder containing one file:

    • HW5_Pt2_Page1_Graphic.png
  • Updated README.txt file listing all files folders in specified formatted list.

    • Note that you can delete the folder of text files once your dashboard is complete.
  1. Save a screenshot of the HW 5 - Part 2 files and Environment that demonstrates that this project was completed in Post Cloud. The screenshot should look like this and submitting this screenshot will be work 1 point of HW 5 - Part 2.

  2. Verify that the project folder is named HW 5 - Part 2 FirstName LastName (updated with your name) and export this file to your laptop.

    • Exporting the folder will automatically zip it.
  3. Submit zipped project and screenshot separately.

Grading Criteria

  • There are no Blackboard Questions for HW 5 - Part 2.

Dashboard Update

  • (4 pts.) Completing HW 5.2 - First Steps as specified.

  • (2 pts.) Page 1 - Image Page:

    • Full credit for

      • correctly creating Page 1 with provided text and code.
  • (3 pts.) Pages 2 and 3 - Stock Time Series Plots

    • Full credit for

      • updating the title of Page 2.

      • correctly creating Page 3 with provided text and code.

      • adding coherent text to Page 3 in the correct place.

  • (2 pts.) Page 6 - Pie Chart Grid

    • Full credit for

      • correctly creating Page 6 with provided text and code.

      • adding coherent text to Page 6 in the correct place.

  • (2 pts.) Page 7 - Line and Area Plot

    • Full credit for

      • correctly creating Page 7 with provided text and code.

      • adding coherent text to Page 6 in the correct place.

  • (3 pts.) Page 8 - About Page

    • Full credit for

      • correctly adding linked text for Statista to the data sources list.

      • correctly adding citations for the gridExtra and dygraphs packages to the citations list and updating the tidyquant citation.

  • (4 pts.) Completing the HW 5 - Part 2 - Final Steps as specified, including:

    • updating the README.

    • creating a screenshot of your Files, Environment and settings in Posit cloud.

    • correctly submitting your zipped project directory and your screenshot.