-
Notifications
You must be signed in to change notification settings - Fork 0
/
Intro_to_Shiny.Rmd
101 lines (54 loc) · 2.22 KB
/
Intro_to_Shiny.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
title: "Intro to R Shiny"
subtitle: "UCI Data Science Initiative"
author: "Dustin Pluta"
date: "21 February 2017"
output:
xaringan::moon_reader:
seal: yes
nature:
highlightStyle: github
---
```{r setup, include=FALSE}
options(htmltools.dir.version = FALSE)
```
# Topics
1. Interactive Markdown Documents
2. Overview of Shiny Widgets
3. Buliding a Dashboard
---
# Some Resources for R
* [shiny Cheat Sheet](http://shiny.rstudio.com/images/shiny-cheatsheet.pdf)
* [`dplyr` Cheat Sheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf)
* [R Markdown Cheat Sheet](https://www.rstudio.com/wp-content/uploads/2015/02/rmarkdown-cheatsheet.pdf)
* [R Markdown Tutorial](http://www.jacolienvanrij.com/Tutorials/tutorialMarkdown.html)
* [knitr](https://yihui.name/knitr/)
* [Data Carpentry Lessons for R](http://www.datacarpentry.org/R-ecology-lesson/)
* [dplyr Tutorial](http://genomicsclass.github.io/book/pages/dplyr_tutorial.html)
* [Advanced R (by Hadley Wickham)](http://adv-r.had.co.nz/)
* [R for Data Science (by Grolemund and Wickham)](http://r4ds.had.co.nz/)
---
# Intro to Shiny
- Shiny is an R Studio package for building interactive Web Apps and can be combined with R Markdown to create a variety of interactive documents
- Shiny allows you to design a UI completely in R
- Shiny apps can be hosted on the web!
+ [shinyappsio](https://www.shinyapps.io/)
+ [UCI DSI Shiny Server](shiny.datascience.uci.edu)
---
# Interactive Markdown Documents
- [Interactive R Markdown Guide](http://rmarkdown.rstudio.com/authoring_shiny.html)
- [Shiny Widget Gallery](https://shiny.rstudio.com/gallery/widget-gallery.html)
---
# Interactive Markdown Documents
- See __Interactive R Markdown Example File__
- Then try __R Markdown Exercise Set 2__
---
# Flexdashboard
- First install packages:
+ `shiny`
+ `flexdashboard`
- Example 1: [Bi-clustering](https://jjallaire.shinyapps.io/shiny-biclust/)
- Example 2: [Gotta Catch'em All](http://jkunst.com/flexdashboard-highcharter-examples/pokemon/)
- [Flexdashboard Gallery](http://rmarkdown.rstudio.com/flexdashboard/examples.html)
- See file __Biclusetring Dashboard__
- Then try things out with __IMDB Dashboard__