$30 off During Our Annual Pro Sale. View Details »

Shiny - January 2015 LA R Users Group

Joe Cheng
January 21, 2015

Shiny - January 2015 LA R Users Group

Joe Cheng

January 21, 2015

More Decks by Joe Cheng

Other Decks in Programming


  1. Shiny LA R Users Group January 20, 2015 Joe Cheng

    <joe@rstudio.com> https://speakerdeck.com/jcheng5/shiny-january-2015-la-r-users-group
  2. About me • Software engineer at RStudio, Inc. • Shiny

    creator and now co-maintainer (along with Winston Chang and Yihui Xie) • Building websites since 1995 • Almost no stats background
  3. Motivation R is a powerful platform for data analysis •

    State of the art statistical power • Excellent for visualization • Large and enthusiastic community
  4. Motivation But… • A personal experience, not a shared one

    • Output is usually in static formats • Modern visualization is interactive, browser- based
  5. What is Shiny? • Interactive web applications around your R

    analyses • Zero HTML/CSS/JavaScript knowledge is required… • …but fully customizable and extensible with HTML/CSS/JavaScript
  6. What is Shiny? • Modern web UI with attractive defaults,

    but also infinitely customizable • Designed to integrate with existing JavaScript libraries • Uses a reactive programming model which allows dramatically simpler code than traditional UI or web programming
  7. Demo
 Hello World

  8. Demo

  9. Can R do ____? • "It's possible, but never been

    done before." • "Try this snippet I found on GitHub / r-bloggers / Stack Overflow / Google groups / r-help." • "Use one of these six CRAN packages (two of which are by Hadley)."
  10. Photo credits Rainforest https://flic.kr/p/nSBona
 Road https://flic.kr/p/grKyM3
 Interstate https://flic.kr/p/dn3sRW

  11. Can Shiny do ____? • Jungle: "It's possible, if you

    know JavaScript." • Road: "Try this snippet from GitHub / r-bloggers / Stack Overflow / google groups / r-help." • Interstate: "Use this package." / "That's a built-in feature of Shiny."
  12. Recent work • Encourage community development of high- quality R

    packages for JavaScript libraries and D3 visualizations (htmlwidgets) • Build our own widget packages for high-impact JavaScript libraries (leaflet, dygraphs, DT) • Lower the expertise bar for making great looking apps (shinythemes, shinydashboard)
  13. Demo https://jcheng.shinyapps.io/crandash Source: https://github.com/jcheng5/crandash

  14. Demo http://rstudio.github.io/shinydashboard/ examples.html

  15. Next steps • Get inspired. http://shiny.rstudio.com/gallery • Get started. http://shiny.rstudio.com/tutorial

    • Go deeper. http://shiny.rstudio.com/articles • Need help? Google "shiny-discuss"