-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kunoichi.html
355 lines (266 loc) · 11.9 KB
/
Kunoichi.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<title>Rladies ninja presentation</title>
<meta charset="utf-8" />
<meta name="author" content=" Paula Andrea Martinez <span><i class="fab fa-twitter faa-float animated "></i>@orchid00</span>" />
<link href="Kunoichi_files/remark-css/kunoichi.css" rel="stylesheet" />
<link href="Kunoichi_files/remark-css/ninjutsu.css" rel="stylesheet" />
<link href="Kunoichi_files/remark-css/rladies-fonts.css" rel="stylesheet" />
<link href="Kunoichi_files/font-awesome-animation/font-awesome-animation-emi.css" rel="stylesheet" />
<script src="Kunoichi_files/fontawesome/js/fontawesome-all.min.js"></script>
<script src="Kunoichi_files/htmlwidgets/htmlwidgets.js"></script>
<script src="Kunoichi_files/jquery/jquery.min.js"></script>
<link href="Kunoichi_files/datatables-css/datatables-crosstalk.css" rel="stylesheet" />
<script src="Kunoichi_files/datatables-binding/datatables.js"></script>
<link href="Kunoichi_files/dt-core/css/jquery.dataTables.min.css" rel="stylesheet" />
<link href="Kunoichi_files/dt-core/css/jquery.dataTables.extra.css" rel="stylesheet" />
<script src="Kunoichi_files/dt-core/js/jquery.dataTables.min.js"></script>
<link href="Kunoichi_files/crosstalk/css/crosstalk.css" rel="stylesheet" />
<script src="Kunoichi_files/crosstalk/js/crosstalk.min.js"></script>
</head>
<body>
<textarea id="source">
class: center, middle, inverse, title-slide
# Rladies ninja presentation
## ⚔<br/>with Xaringan and Kunoichi
### <br><br>Paula Andrea Martinez <span><i class="fab fa-twitter faa-float animated "></i>@orchid00</span>
### 2019-08-19 (updated: 2019-08-22)
---
background-image: url(https://upload.wikimedia.org/wikipedia/commons/b/be/Sharingan_triple.svg)
background-size: 100px
background-position: 90% 8%
# Sharingan
<br>
The R package name **xaringan** was derived from **Sharingan**, a dōjutsu in the Japanese anime _Naruto_
with two abilities:
--
- the "Eye of Insight"
- the "Eye of Hypnotism"
--
<br>
"I think a presentation is basically a way to communicate insights to the audience, and a great presentation may even "hypnotize" the audience." - by Yihui Xie.
---
class: middle center bg-main1
# Kunoichi
#⚔
#くノ一
# 女
--
## The Japanese word for female ninja
--
<img src="https://emitanaka.org/ninja-theme/themes/kunoichi/images/kunoichi.svg" width="20%">
---
class: middle
## Now Kunoichi is a theme of latest version of `xaringan`
---
class: inverse, center, middle bg-main1
# Get Started
---
# Let's do this together
<br>
Install the **xaringan** package from **GitHub**
<span><i class="fab fa-github faa-float animated "></i>@yihui</span>
[https://github.com/yihui/xaringan](https://github.com/yihui/xaringan)
<br>
```r
devtools::install_github("yihui/xaringan")
```
<br><br>
Thank you **Yihui Xie**
<span><i class="fab fa-twitter faa-float animated "></i>@xieyihui</span>
<br>
[https://twitter.com/xieyihui](https://twitter.com/xieyihui)
---
class: split-three
.row.bg-white[.content[
# Create a new R markdown file
You are recommended to use the [RStudio IDE](https://www.rstudio.com/products/rstudio/).
```
1. New Project
2. From the menu: File > New File > R Markdown > Template > From Template > Ninja presentation
```
]]
.row.bg-gray100[.content[
### then add/modify the YAML
```
output:
xaringan::moon_reader:
css: ["kunoichi", "ninjutsu" "rladies-fonts"]
```
]]
.row.bg-main1[.content[
<br>
Thank you **Emi Tanaka**
<span><i class="fab fa-twitter faa-float animated "></i>@statsgen</span><span><i class="fab fa-github faa-float animated "></i>emitanaka</span>
<br>
<br>
Thank you **Alison Hill**
<span><i class="fab fa-twitter faa-float animated "></i>@apreshill</span><span><i class="fab fa-github faa-float animated "></i>@apreshill</span>
]]
---
class: middle center bg-main1
# YAY!!
## that's pretty much it!
<img src="https://emitanaka.org/ninja-theme/themes/kunoichi/images/kunoichi.svg" width="20%">
---
## To see results
<br>
- Click the **Knit** button to compile it; in other words to generate the HTML from Markdown.
<br>
- or use the [RStudio Addin](https://rstudio.github.io/rstudioaddins/) "Infinite Moon Reader" to live preview the slides (every time you update and save the Rmd document, the slides will be automatically reloaded in RStudio Viewer.
With this option it is recomended to use
<br>
` r options(servr.daemon = TRUE)`
<br>
To avoid locking up your console while compiling. I added this to the Rmd.
---
# Other recommended reading
1. The [remark.js](https://remarkjs.com) library; a simple, in-browser, Markdown-driven slideshow tool.
1. The [**xaringan**](https://github.com/yihui/xaringan) package to create R markdown presentations, from Yihui Xie.
1. The [**kunoichi**](https://github.com/emitanaka/ninja-theme) theme to add R-ladies flavour to your presentation, from Emi Tanaka.
1. [Rladies theme and fonts](https://alison.rbind.io/post/2017-12-18-r-ladies-presentation-ninja/) from Alison Hill.
---
class: middle center bg-main1
# Extras
---
class: split-two white
.column.bg-white[.content[
<img src="images/dcossyle__navegating.PNG" width="80%">
]]
.column.bg-main1[.content.vmiddle.center[
<span><i class="fab fa-instagram faa-float animated "></i>dcossyle</span>
<br>
[https://www.instagram.com/dcossyle/](https://www.instagram.com/dcossyle/)
<br>
<span><i class="fab fa-twitter faa-float animated "></i>dcossyle</span>
<span><i class="fab fa-github faa-float animated "></i>dcossyleon</span>
<br>
* look for cute giraffes
<br>
[https://tinystats.github.io/teacups-giraffes-and-statistics/index.html](https://tinystats.github.io/teacups-giraffes-and-statistics/index.html)
]]
---
class: middle center
<img src="images/small_ahosrt__dplyr_wrangling.png" width="60%">
<span><i class="fab fa-github faa-float animated "></i>allisonhorst</span>
[https://github.com/allisonhorst/stats-illustrations](https://github.com/allisonhorst/stats-illustrations)
---
# Tables
If you want to generate a table, you can do something like this:
### R-Ladies Brisbane events so far
```r
DT::datatable(events[,c(1,2,6,7)], fillContainer = FALSE)
```
<div id="htmlwidget-019007757629823d9aec" style="width:100%;height:auto;" class="datatables html-widget"></div>
<script type="application/json" data-for="htmlwidget-019007757629823d9aec">{"x":{"filter":"none","fillContainer":false,"data":[["1","2","3","4","5"],[257271224,259785109,261250153,262437333,263640982],["End of year party","R and RStudio Introductory Workshop","R-Ladies Brisbane Networking","Shiny Apps, building a R user community and Web Scraping using R!","R-Ladies Brisbane August meetup, Rmarkdown, Creating Packages and more!"],["2018-12-20","2019-03-27","2019-05-21","2019-07-02","2019-08-21"],["17:30","17:30","18:00","18:00","17:45"]],"container":"<table class=\"display\">\n <thead>\n <tr>\n <th> <\/th>\n <th>id<\/th>\n <th>name<\/th>\n <th>local_date<\/th>\n <th>local_time<\/th>\n <\/tr>\n <\/thead>\n<\/table>","options":{"columnDefs":[{"className":"dt-right","targets":1},{"orderable":false,"targets":0}],"order":[],"autoWidth":false,"orderClasses":false}},"evals":[],"jsHooks":[]}</script>
---
class: middle center
<img src="images/RSVP_RladiesBrisbane.png">
See `scripts/01_rladiesBrisbane.R`
---
class: middle center
<img src="images/MembersJoined.png">
See `scripts/01_rladiesBrisbane.R`
---
class: middle center bg-main1
# Thanks!
Slides created via the R package **xaringan** [https://github.com/yihui/xaringan](https://github.com/yihui/xaringan)
<br>
and the theme **Kunichio** [https://github.com/emitanaka/ninja-theme](https://github.com/emitanaka/ninja-theme).
<br><br>
Jumping emogies optional from **anicon**
[https://github.com/emitanaka/anicon](https://github.com/emitanaka/anicon).
<br><br>
Xaringan uses **remark.js** [https://remarkjs.com](https://remarkjs.com), **knitr**[http://yihui.name/knitr](http://yihui.name/knitr), and R Markdown [https://rmarkdown.rstudio.com](https://rmarkdown.rstudio.com).
<br><br>
I've used a lot of data wrangling and googling, and was inspired by many **RLadies** .
</textarea>
<style data-target="print-only">@media screen {.remark-slide-container{display:block;}.remark-slide-scaler{box-shadow:none;}}</style>
<script src="https://remarkjs.com/downloads/remark-latest.min.js"></script>
<script>var slideshow = remark.create({
"ratio": "16:9",
"highlightStyle": "github",
"highlightLines": true,
"countIncrementalSlides": false
});
if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) {
window.dispatchEvent(new Event('resize'));
});
(function(d) {
var s = d.createElement("style"), r = d.querySelector(".remark-slide-scaler");
if (!r) return;
s.type = "text/css"; s.innerHTML = "@page {size: " + r.style.width + " " + r.style.height +"; }";
d.head.appendChild(s);
})(document);
(function(d) {
var el = d.getElementsByClassName("remark-slides-area");
if (!el) return;
var slide, slides = slideshow.getSlides(), els = el[0].children;
for (var i = 1; i < slides.length; i++) {
slide = slides[i];
if (slide.properties.continued === "true" || slide.properties.count === "false") {
els[i - 1].className += ' has-continuation';
}
}
var s = d.createElement("style");
s.type = "text/css"; s.innerHTML = "@media print { .has-continuation { display: none; } }";
d.head.appendChild(s);
})(document);
// delete the temporary CSS (for displaying all slides initially) when the user
// starts to view slides
(function() {
var deleted = false;
slideshow.on('beforeShowSlide', function(slide) {
if (deleted) return;
var sheets = document.styleSheets, node;
for (var i = 0; i < sheets.length; i++) {
node = sheets[i].ownerNode;
if (node.dataset["target"] !== "print-only") continue;
node.parentNode.removeChild(node);
}
deleted = true;
});
})();</script>
<script>
(function() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (/^(https?:)?\/\//.test(links[i].getAttribute('href'))) {
links[i].target = '_blank';
}
}
})();
</script>
<script>
slideshow._releaseMath = function(el) {
var i, text, code, codes = el.getElementsByTagName('code');
for (i = 0; i < codes.length;) {
code = codes[i];
if (code.parentNode.tagName !== 'PRE' && code.childElementCount === 0) {
text = code.textContent;
if (/^\\\((.|\s)+\\\)$/.test(text) || /^\\\[(.|\s)+\\\]$/.test(text) ||
/^\$\$(.|\s)+\$\$$/.test(text) ||
/^\\begin\{([^}]+)\}(.|\s)+\\end\{[^}]+\}$/.test(text)) {
code.outerHTML = code.innerHTML; // remove <code></code>
continue;
}
}
i++;
}
};
slideshow._releaseMath(document);
</script>
<!-- dynamically load mathjax for compatibility with self-contained -->
<script>
(function () {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML';
if (location.protocol !== 'file:' && /^https?:/.test(script.src))
script.src = script.src.replace(/^https?:/, '');
document.getElementsByTagName('head')[0].appendChild(script);
})();
</script>
</body>
</html>