Download presentation
Presentation is loading. Please wait.
1
R Shiny EPID 799C Fall 2017
2
Today: Examples & Patterns
Intro to Shiny Basics Dashboards Hands on Default app Births app Apps I’m working on R in other pathways (Javascript / D3)
3
But first! Web apps the usual way
HTML/XML Javascript (D3, special APIs) CSS Prep work in multiple other languages / applications (ArcGIS, inkscape / photoshop, etc.) ^ Note: this is what “real” web folks ($$$ NYT) are currently doing, for the most part. Let’s look at an example: my final (WIP) project due next week. :/
4
Why it’s hard Data and server setup can be annoying
Building histograms by hand is no fun Requires multiple languages
5
Shiny Basics
6
Shiny Basics
7
Shiny Basics
8
Shiny Basics
9
Shiny Basics: Even More Widgets
10
Shiny Basics
11
Shiny Basics UI Can also directly write HTML (as functions) if you want to for max flexibility. Handles javascript and css too. Layouts: Base has layout tools, dashboard has some more.
12
Shiny Basics: Where to start?
Gallery Start Simple for a great place to start. Also multiple tutorials (of course!) online.
13
Improving Shiny: Dashboards with flexdashboard and shinydashboard
Comparison of two options: flexdashboard shinydashboard* R Markdown Shiny UI code Super easy Not quite as easy Static or dynamic Dynamic CSS flexbox layout Bootstrap grid layout *What I use
14
RMarkdown flexdashboards
15
A CDC example
16
Shiny Gadgets Lives inside R Studio as an AddIn
Helps you do your analysis Design your own buttons! Written in shiny app/server syntax
17
Shinyapps.io Free or very cheap server space
Integrates seamlessly with Rstudio Upload your completed apps with a click
18
Let’s Try! Default Shiny App Births shiny app Fancier apps (WIP)
D3/Javascript
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.