-
Notifications
You must be signed in to change notification settings - Fork 0
/
Intro_to_Shiny.html
132 lines (83 loc) · 3.34 KB
/
Intro_to_Shiny.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html>
<head>
<title>Intro to R Shiny</title>
<meta charset="utf-8">
<meta name="author" content="Dustin Pluta" />
<meta name="date" content="2017-02-21" />
<link href="Intro_to_Shiny_files/remark-css/example.css" rel="stylesheet" />
</head>
<body>
<textarea id="source">
class: center, middle, inverse, title-slide
# Intro to R Shiny
## UCI Data Science Initiative
### Dustin Pluta
### 21 February 2017
---
# 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__
</textarea>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"highlightStyle": "github"
});
if (window.HTMLWidgets) slideshow.on('showSlide', function (slide) {setTimeout(function() {window.dispatchEvent(new Event('resize'));}, 100)});</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre']
}
});
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
if (location.protocol !== 'file:' && /^https?:/.test(script.src))
script.src = script.src.replace(/^https?:/, '');
document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
</body>
</html>