Presentation is loading. Please wait.

Presentation is loading. Please wait.

SHINING WITH SHINY: INTRODUCING A WEB APPLICATION FRAMEWORK FOR R Gokul Bhandari.

Similar presentations


Presentation on theme: "SHINING WITH SHINY: INTRODUCING A WEB APPLICATION FRAMEWORK FOR R Gokul Bhandari."— Presentation transcript:

1 SHINING WITH SHINY: INTRODUCING A WEB APPLICATION FRAMEWORK FOR R Gokul Bhandari

2 What is Shiny?  A web application framework for R developed by Rstudio  R is open source statistical programming language  Download R from r-project.org  Download Rstudio (IDE) from rstudio.com  R packages: shiny, shinyapps

3 Deployment of shiny  Two ways: Shiny Server and shinyapps  Shiny server: Open source and Professional versions  Through shinyapps: https://www.shinyapps.io/  Free, Basic $39/month, standard $99/month, Professional $299/month

4 Example of shiny app

5 Code: ui.R

6 Code: server.R

7 Building user-interface (minimum code)

8 Building user-interface

9

10 Adding control widgets

11

12 Displaying reactive output  Output dynamically computed every time an input changes  Inputs are given through widgets  Code updates the recent values of widgets

13 Output (ui) & render (server) functions

14 Reactivity: Main points  use an *Output function in the ui.R script to place reactive objects in your Shiny app  use a render* function in the server.R script to tell Shiny how to build your objects  surround R expressions by braces, { }, in each render* function  save your render* expressions in the output list, with one entry for each reactive object in your app.  create reactivity by including an input value in a render* expression

15 Shiny Layouts  Sidebar  Grid: Fluid Grid, Fixed Grid  Tabsets  Navlists  Nabbar Pages  Themes

16 Demonstration  https://gokul.shinyapps.io/AOLAnalyzer/ https://gokul.shinyapps.io/AOLAnalyzer/  https://gokul.shinyapps.io/shinyDoc/stat1.Rmd https://gokul.shinyapps.io/shinyDoc/stat1.Rmd  http://rpubs.com/gokul108 http://rpubs.com/gokul108


Download ppt "SHINING WITH SHINY: INTRODUCING A WEB APPLICATION FRAMEWORK FOR R Gokul Bhandari."

Similar presentations


Ads by Google