Shiny applications
:: Shiny packege for R ::
- Example of what can be done using Shiny:
- How to run it:
- Download the files ui.R (user interface) and server.R
- Put them into one folder.
- Install shiny package in R studio.
- Run the Shiny application - click on Run App:
- Construct some option stategy and comment on its payoff. When would you use this strategy?
- How does it work:
- User interface - file ui.R:
- In this layout, there are three panels:
- For the header panel we specify the title which should be displayed:
- Overview of the side panel:
- And slider input in more detail:
- Main bar:
- server.R:
:: Exercises (2) ::
- Add a possibility to use also put options with the same exercise prices. Choose a strategy which uses puts or a combination of calls and puts, and construct its payoff diagram using your Shiny application.