Dashboard Instructions
Instructions for Modifying and Publishing Stock Dashboard
- If you are creating this dashboard on your personal computer (instead of Posit Cloud), make sure you have installed
- Run
setup
chunk to confirm all packages are installed and loaded. - Run Chunk 2 (
functions
) to initiate the required functions. - 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
- In Chunk 5 (
create dygraph
), modify first line to specify stock symbol without quotes:(dg <- fun3(my_data=AMZN,
- Click
Render
button to render the dashboard. - Click the blue Publish icon and select RPubs.
- You will be asked to create a free RPubs account which is quick and easy.
- Publish dashboard. - Note that you may have to go to full screen for the dashboard to be fully view-able.
Optional
This dashboard was created using the
United
theme. There are many theme options but for the dygraph, only light themes are recommended.