Dashboard Instructions

Author

Penelope Pooler Eisenbies

Instructions for Modifying and Publishing Stock Dashboard

  1. If you are creating this dashboard on your personal computer (instead of Posit Cloud), make sure you have installed
    • Latest version of Quarto.
    • Latest version of RStudio.
    • Latest version of R.
  2. Run setup chunk to confirm all packages are installed and loaded.
  3. Run Chunk 2 (functions) to initiate the required functions.
  4. In Chunk 3 (specify inputs), modify the following input values:
    • The text below shows the R lines to be edited and the comments provide additional instruction.
stock_symbol <- "AMZN"       # enter stock symbol in quotes
stock_name <- "Amazon"       # stock name used plot and for accompanying text
start_date <- "2010-01-01"   # enter start date in quotes as shown
end_date <- "2024-04-17"     # enter end date in quotes as shown
n_forecasts <- 12            # number of monthly forecasts requested

db <- fun1(AMZN)             # enter stock symbol without quotes
  1. In Chunk 5 (create dygraph), modify first line to specify stock symbol without quotes:
    • (dg <- fun3(my_data=AMZN,
  2. Click Render button to render the dashboard.
  3. Click the blue Publish icon and select RPubs.
    • You will be asked to create a free RPubs account which is quick and easy.
  4. Publish dashboard. - Note that you may have to go to full screen for the dashboard to be fully view-able.

Optional