$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
Tweet

More Decks by Joe Cheng

Other Decks in Programming

Transcript

  1. Shiny
    LA R Users Group
    January 20, 2015
    Joe Cheng
    https://speakerdeck.com/jcheng5/shiny-january-2015-la-r-users-group

    View Slide

  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

    View Slide

  3. Motivation
    R is a powerful platform for data analysis
    • State of the art statistical power
    • Excellent for visualization
    • Large and enthusiastic community

    View Slide

  4. Motivation
    But…
    • A personal experience, not a shared one
    • Output is usually in static formats
    • Modern visualization is interactive, browser-
    based

    View Slide

  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

    View Slide

  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

    View Slide

  7. Demo

    Hello World

    View Slide

  8. Demo

    http://shiny.rstudio.com/gallery

    View Slide

  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)."

    View Slide

  10. Photo credits
    Rainforest https://flic.kr/p/nSBona

    Road https://flic.kr/p/grKyM3

    Interstate https://flic.kr/p/dn3sRW

    View Slide

  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."

    View Slide

  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)

    View Slide

  13. Demo
    https://jcheng.shinyapps.io/crandash
    Source: https://github.com/jcheng5/crandash

    View Slide

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

    View Slide

  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"

    View Slide