Slide 1

Slide 1 text

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

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

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

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

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

Slide 7

Slide 7 text

Demo
 Hello World

Slide 8

Slide 8 text

Demo
 http://shiny.rstudio.com/gallery

Slide 9

Slide 9 text

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

Slide 10

Slide 10 text

Photo credits Rainforest https://flic.kr/p/nSBona
 Road https://flic.kr/p/grKyM3
 Interstate https://flic.kr/p/dn3sRW

Slide 11

Slide 11 text

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

Slide 12

Slide 12 text

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)

Slide 13

Slide 13 text

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

Slide 14

Slide 14 text

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

Slide 15

Slide 15 text

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"