macvur.blogg.se

Shiny package in r
Shiny package in r





The server function takes the input values from the UI (i.e. the selected stock and number of simulations) and uses them to get and analyze the stock data. The second section of the code defines the server function for the shiny app. The main panel contains two sections: one for the tidy_autoplot() output (a plot of the stock returns), and one for the tidy_empirical() output (a table of the log returns). The sidebar panel contains a select input that allows users to choose which FAANG stock to analyze, as well as a numeric input for the number of simulations to run.

shiny package in r shiny package in r shiny package in r

The UI consists of a title panel, a sidebar panel, and a main panel.







Shiny package in r