-
Notifications
You must be signed in to change notification settings - Fork 48
/
index.html
1374 lines (1189 loc) · 36.8 KB
/
index.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
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<title>Example slidify</title>
<meta charset="utf-8">
<meta name="description" content="Example slidify">
<meta name="author" content="Joseph Casillas">
<meta name="generator" content="slidify" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<link rel="stylesheet" href="libraries/frameworks/io2012/css/default.css" media="all" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/phone.css"
media="only screen and (max-device-width: 480px)" >
<link rel="stylesheet" href="libraries/frameworks/io2012/css/slidify.css" >
<link rel="stylesheet" href="libraries/highlighters/highlight.js/css/tomorrow.css" />
<base target="_blank"> <!-- This amazingness opens all links in a new tab. --> <link rel=stylesheet href="libraries/widgets/quiz/css/demo.css"></link>
<link rel=stylesheet href="libraries/widgets/bootstrap/css/bootstrap.css"></link>
<link rel=stylesheet href="libraries/widgets/interactive/css/aceeditor.css"></link>
<link rel=stylesheet href="libraries/widgets/nvd3/css/nv.d3.css"></link>
<link rel=stylesheet href="libraries/widgets/nvd3/css/rNVD3.css"></link>
<link rel=stylesheet href="libraries/widgets/leaflet/external/leaflet.css"></link>
<link rel=stylesheet href="libraries/widgets/leaflet/external/leaflet-rCharts.css"></link>
<link rel=stylesheet href="libraries/widgets/leaflet/external/legend.css"></link>
<link rel=stylesheet href="./assets/css/ribbons.css"></link>
<link rel=stylesheet href="./assets/css/style.css"></link>
<!-- Grab CDN jQuery, fall back to local if offline -->
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.min.js"></script>
<script>window.jQuery || document.write('<script src="libraries/widgets/quiz/js/jquery.js"><\/script>')</script>
<script data-main="libraries/frameworks/io2012/js/slides"
src="libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
<script src="libraries/widgets/nvd3/js/jquery-1.8.2.min.js"></script>
<script src="libraries/widgets/nvd3/js/d3.v3.min.js"></script>
<script src="libraries/widgets/nvd3/js/nv.d3.min-new.js"></script>
<script src="libraries/widgets/nvd3/js/fisheye.js"></script>
<script src="libraries/widgets/leaflet/external/leaflet.js"></script>
<script src="libraries/widgets/leaflet/external/leaflet-providers.js"></script>
<script src="libraries/widgets/leaflet/external/Control.FullScreen.js"></script>
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<slide class="nobackground">
<article class="flexbox vcenter">
<span>
<img width='300px' src="assets/img/ua.png">
</span>
</article>
</slide>
<slide class="title-slide segue nobackground">
<aside class="gdbar">
<img src="assets/img/ua.png">
</aside>
<hgroup class="auto-fadein">
<h1>Example slidify</h1>
<h2>Subtitle goes here</h2>
<p>Joseph Casillas<br/>PhD Candidate</p>
</hgroup>
<article></article>
</slide>
<!-- SLIDES -->
<slide class="class" id="id" style="background:;">
<article data-timings="">
<style type="text/css">
body {background:grey transparent;
}
</style>
<h2>Slidify</h2>
<ul>
<li>In this tutorial I am going to show you how to make a presentation just like this one</li>
<li>I will also show some of the features that can be used in conjunction with slidify (i.e. quizzes and html widgets)</li>
<li>You can download the current version of this presentation <a href="https://github.com/jvcasill/slidify_tutorial/tree/gh-pages">here</a>, use it as a template and edit as you like</li>
<li>Or you can follow these instructions to make one of your own</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="segue" id="slide-2" style="background:grey;">
<hgroup>
<h1>First things first...</h1>
</hgroup>
<article data-timings="">
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Install packages</h2>
</hgroup>
<article data-timings="">
<ul>
<li><code>Slidify</code> works in R, so you need to download <a href="http://cran.r-project.org">that</a> if you haven't yet.</li>
<li>You also need to make sure you have all of the necessary dependencies installed on your computer</li>
<li>Open R and copy and paste the following code into the console (you only need to do this once)</li>
</ul>
<pre><code class="r">install.packages("devtools")
install_github('slidify', 'ramnathv')
install_github('slidifyLibraries', 'ramnathv')
</code></pre>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Create slidify</h2>
</hgroup>
<article data-timings="">
<ul>
<li>Each presentation is called a 'deck'</li>
<li>Set your working directory to wherever you want the folder (<code>setwd("path/here")</code>)</li>
<li>Load the <code>slidify</code> package with <code>library(slidify)</code></li>
<li>Create the deck with <code>author('mydeck')</code>
<ul>
<li>You can name it whatever you want</li>
<li>This will create a folder with all the necessary files</li>
</ul></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Explore the deck</h2>
</hgroup>
<article data-timings="">
<ul>
<li>You should now have a folder in your working directory with the name you entered above</li>
<li>All of the necessary files are there</li>
<li>The <code>.Rmd</code> file is the only one you need to work with
<ul>
<li>This is where you will actually modify the deck (your presentation)</li>
<li>It should have opened automatically if you are using RStudio</li>
</ul></li>
<li>The YAML front matter (the very first thing in the <code>.Rmd</code> file) should look like this...</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<article data-timings="">
<pre><code>---
title :
subtitle :
author :
job :
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
knit : slidify::knit2slides
---
</code></pre>
<ul>
<li>You can fill in the information as you see fit
<ul>
<li>You will typically use <code>title, subtitle, author, job</code></li>
<li>but the <code>widgets</code> are also important</li>
</ul></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<article data-timings="">
<pre><code>---
title : Example slidify
subtitle : Subtitle goes here
author : Joseph Casillas
job : PhD Candidate
framework : io2012 # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js # {highlight.js, prettify, highlight}
hitheme : tomorrow #
widgets : [mathjax, quiz, bootstrap] # {mathjax, quiz, bootstrap}
mode : selfcontained # {standalone, draft}
knit : slidify::knit2slides
logo : ua.png
biglogo : ua.png
assets : {assets: ../../assets}
---
</code></pre>
<ul>
<li>You can make your deck look like this</li>
<li>Specifically, you should add <code>widgets : [mathjax, quiz, bootstrap]</code></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Widgets</h2>
</hgroup>
<article data-timings="">
<ul>
<li>The widgets will allow you to...
<ul>
<li>make quizzes</li>
<li>use math formulas and </li>
<li>utilize the bootstrap framework</li>
</ul></li>
<li>The logos are located in the <code>assets > img</code> folder
<ul>
<li>This is where you will add any other images you want to put in your presentation</li>
</ul></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>RMarkdown syntax</h2>
</hgroup>
<article data-timings="">
<ul>
<li>Markdown syntax is very easy</li>
<li>You can find the basics <a href="http://rmarkdown.rstudio.com">here</a></li>
<li>The main thing you need to know is that you make new slides using <code>---</code> and <code>##</code></li>
</ul>
<h3><code>##</code></h3>
<ul>
<li>The double pound sign (hashtags) create the title of the slide</li>
<li>The title of this slide was made with <code>## Rmarkdown syntax</code></li>
</ul>
<h3><code>---</code></h3>
<ul>
<li>To end a slide use three dashes</li>
<li>Importantly after you end a slide, you designate the class of the next one </li>
<li>The default (what you see here) is <code>.class #id</code></li>
<li>So I ended this slide using <code>--- .class #id</code></li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<article data-timings="">
<pre><code>## RMarkdown syntax
- Markdown syntax is very easy
- You can find the basics [here](http://rmarkdown.rstudio.com)
- The main thing you need to know is that you make new slides using `---` and `##`
### `##`
- The double pound sign (hashtags) create the title of the slide
- The title of this slide was made with `## Rmarkdown syntax`
### `---`
- To end a slide use three dashes
- Importantly after you end a slide, you designate the style of the next one
- The default (what you see here) is `.class #id`
- So I ended this slide using `--- .class #id`
--- .class #id
</code></pre>
<ul>
<li>This is the previous slide in markdown</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
<h2>Creating the deck</h2>
</hgroup>
<article data-timings="">
<ul>
<li>Once you have made the slides in markdown you are ready to generate the html file that will be your presentation</li>
<li>You do this using the <code>slidify()</code> command like this...</li>
</ul>
<pre><code class="r">slidify('index.Rmd')
</code></pre>
<ul>
<li>This will generate a <code>index.html</code> file. </li>
<li>Double click it and open your presentation in web browser</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="segue" id="slide-12" style="background:grey;">
<hgroup>
<h1>Incorporating r code</h1>
</hgroup>
<article data-timings="">
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-13" style="background:;">
<hgroup>
<h2>R code</h2>
</hgroup>
<article data-timings="">
<ul>
<li>You can insert code by surrounding it with ```{r}, followed by ``` (three more ticks)...</li>
</ul>
<p>```{r}<br>
code here<br>
``` </p>
<ul>
<li>Here is an example of some simple math</li>
</ul>
<pre><code class="r">2 + 2
</code></pre>
<pre><code>## [1] 4
</code></pre>
<ul>
<li>To do this I typed</li>
</ul>
<p>```{r}<br>
2 + 2<br>
``` </p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-14" style="background:;">
<hgroup>
<h2>R code (cont)</h2>
</hgroup>
<article data-timings="">
<ul>
<li>Here is another example</li>
</ul>
<pre><code class="r">plot(cars)
abline(lm(dist ~ speed, data = cars), col = "red")
</code></pre>
<p><img src="assets/fig/unnamed-chunk-4-1.png" title="plot of chunk unnamed-chunk-4" alt="plot of chunk unnamed-chunk-4" style="display: block; margin: auto;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-15" style="background:;">
<hgroup>
<h2>R code (cont)</h2>
</hgroup>
<article data-timings="">
<ul>
<li>Here is a more complex example</li>
</ul>
<pre><code class="r">library(ggplot2)
g <- ggplot(cars, aes(speed, dist))
g + geom_point() +
geom_smooth()
</code></pre>
<p><img src="assets/fig/unnamed-chunk-5-1.png" title="plot of chunk unnamed-chunk-5" alt="plot of chunk unnamed-chunk-5" style="display: block; margin: auto;" /></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="segue" id="slide-16" style="background:grey;">
<hgroup>
<h1>Quizzes</h1>
</hgroup>
<article data-timings="">
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-17" style="background:;">
<hgroup>
<h2>Radio</h2>
</hgroup>
<article data-timings="">
<div class="quiz quiz-single well ">
<p>Eleanor scores 680 on the Mathematics part of the SAT. The distribution of SAT scores in a reference population is Normal, with mean 500 and standard deviation 100. Gerald takes the American College Testing (ACT) Mathematics test and scores 27. ACT scores are Normally distributed with mean 18 and standard deviation 6. Assuming that both tests measure the same kind of ability, who did better?</p>
<ol>
<li><em>Eleanor</em></li>
<li>Gerald</li>
</ol>
<button class="quiz-submit btn btn-primary">Submit</button>
<button class="quiz-toggle-hint btn btn-info">Show Hint</button>
<button class="quiz-show-answer btn btn-success">Show Answer</button>
<button class="quiz-clear btn btn-danger">Clear</button>
<div class="quiz-explanation">
<p>The best way to compare their performance is to calculate their standardized scores.</p>
<p>\[z_E = \frac{680 - 500}{100} = 1.8\]
\[z_G = \frac{27 - 18}{6} = 1.5\]</p>
<p>Since, Eleanor has a higher standardized score, we can conclude that Eleanor did better!</p>
</div>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-18" style="background:;">
<hgroup>
<h2>Radio (Two Column)</h2>
</hgroup>
<article data-timings="">
<div class='row-fluid'>
<div class='span6'>
<p><img src=https://oli.cmu.edu/repository/webcontent/470835bf80020ca60018d5a6c359d34c/_u2_summarizing_data/_m2_examining_relationships/webcontent/linear1.gif></p>
</div>
<div class='span6'>
<div class="quiz quiz-single well new">
<p>Which of these two scatterplots have a higher correlation?</p>
<ol>
<li>A</li>
<li>B</li>
</ol>
<button class="quiz-submit btn btn-primary">Submit</button>
<button class="quiz-toggle-hint btn btn-info">Show Hint</button>
<button class="quiz-show-answer btn btn-success">Show Answer</button>
<button class="quiz-clear btn btn-danger">Clear</button>
<div class="quiz-explanation">
<p>Both have the same correlation.</p>
</div>
</div>
</div>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-19" style="background:;">
<hgroup>
<h2>Checkbox</h2>
</hgroup>
<article data-timings="">
<div class="quiz quiz-multiple well" data-individual>
<p>Linda is 31 years old, single, outspoken, and very bright. She majored in philosophy. As a student, she was deeply concerned with issues of discrimination and social justice, and also participated in anti-nuclear demonstrations.</p>
<p>Which is more probable?</p>
<ol>
<li><em>Linda is a bank teller.</em></li>
<li>Linda is a bank teller and is active in the feminist movement.</li>
</ol>
<button class="quiz-submit btn btn-primary">Submit</button>
<button class="quiz-toggle-hint btn btn-info">Show Hint</button>
<button class="quiz-show-answer btn btn-success">Show Answer</button>
<button class="quiz-clear btn btn-danger">Clear</button>
<div class="quiz-hint">
<p>Think about the probabilities of each event, and that of both of them together.</p>
</div>
<div class="quiz-explanation">
<p>If you chose (2), stop back and think. Suppose we denote the event of Linda being a teller by A and the event she is active in the feminist movement by B, then probabilities in question can be written as.</p>
<ul>
<li>P(A)</li>
<li>\(P(A \cap B)\)</li>
</ul>
<p>This is called the <a href="http://en.wikipedia.org/wiki/Conjunction_fallacy">conjugacy fallacy</a> that occurs when it is assumed that specific conditions are more probable than a single general one.</p>
</div>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-20" style="background:;">
<hgroup>
<h2>Multi Text</h2>
</hgroup>
<article data-timings="">
<div class="quiz-text quiz-multitext well">
<p>The length of human pregnancies from conception to birth varies according to a distribution that is approximately Normal with mean 266 days and standard deviation 16 days.</p>
<ol>
<li>What percent of pregnancies last fewer than 240 days?</li>
<li>What percent of pregnancies last between 240 and 270 days?</li>
<li>How long do the longest 25% pregnancies last?</li>
</ol>
<button class="quiz-submit btn btn-primary">Submit</button>
<button class="quiz-toggle-hint btn btn-info">Show Hint</button>
<button class="quiz-show-answer btn btn-success">Show Answer</button>
<button class="quiz-clear btn btn-danger">Clear</button>
<div class="quiz-explanation">
<ol>
<li><span class='answer'>5.2081279</span></li>
<li><span class='answer'>54.6625046</span></li>
<li><span class='answer'>276.791836</span></li>
</ol>
</div>
<div class="quiz-hint">
<p>This is a hint</p>
</div>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-21" style="background:;">
<hgroup>
<h2>Submit and Compare</h2>
</hgroup>
<article data-timings="">
<p>What is the sample space for this experiment?</p>
<textarea rows="" style="width:95%" class='submitCompare'
placeholder='Type your answer (at least 140 characters)'>
</textarea>
<a class='btn btn-success submitCompare'>
Submit and Compare
</a>
<a class='btn btn-danger clearSubmitCompare'>Clear</a>
<div class='explanation' style='display: none;'>
<p>The sample space for this experiment is</p>
<p>{HH, HT, TH, HH}</p>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-22" style="background:;">
<hgroup>
<h2>Submit and Compare (2 Column)</h2>
</hgroup>
<article data-timings="">
<div class='row-fluid'>
<div class='span6'>
<p>The solid curve represents the distribution of heights of all males in the US. The dotted curve represents the distribution of heights reported by males on OkCupid, an online dating website.</p>
<p><img class=center
src=http://cdn.okcimg.com/blog/lies/MaleHeightDistribution.png width=400px></p>
</div>
<div class='span6'>
<p>What is happening here?</p>
<textarea rows="5" style="width:95%" class='submitCompare'
placeholder='Type your answer (at least 140 characters)'>
</textarea>
<a class='btn btn-success submitCompare' data-title=''>
Submit and Compare
</a>
<a class='btn btn-danger clearSubmitCompare'>Clear</a>
<div class="explanation" style="display:none;">
<p>It is easier to interpret things if we overlay a fitted normal distribution for the heights reported by males on OkCupid. Looking at the graph carefully, we can observe two things.</p>
<p><img class=center
src=http://cdn.okcimg.com/blog/lies/MaleHeightDistributionYoink.png width=400px></p>
<ol>
<li>Males on OkCupid probably tend to inflate their heights!</li>
<li>You can also see a more subtle vanity at work: starting at roughly 5' 8", the top of the dotted curve tilts even further rightward. This means that guys as they get closer to six feet round up a bit more than usual, stretching for that coveted psychological benchmark.</li>
</ol>
</div>
</div>
</div>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="segue" id="slide-23" style="background:grey;">
<hgroup>
<h1>Interactivity</h1>
</hgroup>
<article data-timings="">
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-24" style="background:;">
<hgroup>
<h2>Interactive Console</h2>
</hgroup>
<article data-timings="">
<div align="center">
<!-- MotionChart generated in R 3.1.3 by googleVis 0.5.8 package -->
<!-- Thu May 21 12:35:43 2015 -->
<!-- jsHeader -->
<script type="text/javascript">
// jsData
function gvisDataMotionChartID10e3618c31666 () {
var data = new google.visualization.DataTable();
var datajson =
[
[
"Apples",
2008,
"West",
98,
78,
20,
"2008-12-31"
],
[
"Apples",
2009,
"West",
111,
79,
32,
"2009-12-31"
],
[
"Apples",
2010,
"West",
89,
76,
13,
"2010-12-31"
],
[
"Oranges",
2008,
"East",
96,
81,
15,
"2008-12-31"
],
[
"Bananas",
2008,
"East",
85,
76,
9,
"2008-12-31"
],
[
"Oranges",
2009,
"East",
93,
80,
13,
"2009-12-31"
],
[
"Bananas",
2009,
"East",
94,
78,
16,
"2009-12-31"
],
[
"Oranges",
2010,
"East",
98,
91,
7,
"2010-12-31"
],
[
"Bananas",
2010,
"East",
81,
71,
10,
"2010-12-31"
]
];
data.addColumn('string','Fruit');
data.addColumn('number','Year');
data.addColumn('string','Location');
data.addColumn('number','Sales');
data.addColumn('number','Expenses');
data.addColumn('number','Profit');
data.addColumn('string','Date');
data.addRows(datajson);
return(data);
}
// jsDrawChart
function drawChartMotionChartID10e3618c31666() {
var data = gvisDataMotionChartID10e3618c31666();
var options = {};
options["width"] = 600;
options["height"] = 500;
options["state"] = "";
var chart = new google.visualization.MotionChart(
document.getElementById('MotionChartID10e3618c31666')
);
chart.draw(data,options);
}
// jsDisplayChart
(function() {
var pkgs = window.__gvisPackages = window.__gvisPackages || [];
var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
var chartid = "motionchart";
// Manually see if chartid is in pkgs (not all browsers support Array.indexOf)
var i, newPackage = true;
for (i = 0; newPackage && i < pkgs.length; i++) {
if (pkgs[i] === chartid)
newPackage = false;
}
if (newPackage)
pkgs.push(chartid);
// Add the drawChart function to the global list of callbacks
callbacks.push(drawChartMotionChartID10e3618c31666);
})();
function displayChartMotionChartID10e3618c31666() {
var pkgs = window.__gvisPackages = window.__gvisPackages || [];
var callbacks = window.__gvisCallbacks = window.__gvisCallbacks || [];
window.clearTimeout(window.__gvisLoad);
// The timeout is set to 100 because otherwise the container div we are
// targeting might not be part of the document yet
window.__gvisLoad = setTimeout(function() {
var pkgCount = pkgs.length;
google.load("visualization", "1", { packages:pkgs, callback: function() {
if (pkgCount != pkgs.length) {
// Race condition where another setTimeout call snuck in after us; if
// that call added a package, we must not shift its callback
return;
}
while (callbacks.length > 0)
callbacks.shift()();
} });
}, 100);
}
// jsFooter
</script>
<!-- jsChart -->
<script type="text/javascript" src="https://www.google.com/jsapi?callback=displayChartMotionChartID10e3618c31666"></script>
<!-- divChart -->
<div id="MotionChartID10e3618c31666"
style="width: 600; height: 500;">
</div>
<p></div></p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="segue" id="slide-25" style="background:grey;">
<hgroup>
<h2>HTML widgets</h2>
</hgroup>
<article data-timings="">
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-26" style="background:;">
<hgroup>
<h2>HTML widget library</h2>
</hgroup>
<article data-timings="">
<p>HTML widgets are interactive graphics made for the web. These are the main libraries available:</p>
<ul>
<li><a href="https://rstudio.github.io/leaflet/">leaflet</a>: interactive maps</li>
<li><a href="https://rstudio.github.io/dygraphs/">dygraphs</a>: charting time series data</li>
<li><a href="http://www.htmlwidgets.org/showcase_metricsgraphics.html">metricsgraphics</a>: scatterplots, linegraphs and histograms</li>
<li><a href="http://christophergandrud.github.io/networkD3/">networkD3</a>: network graphs</li>
<li><a href="https://rstudio.github.io/DT/">DT</a>: print dataframes as html</li>
<li><a href="http://www.htmlwidgets.org/showcase_threejs.html">threejs</a>: 3d scatterplots and <a href="https://www.chromeexperiments.com/globe">globes</a></li>
<li><a href="http://rich-iannone.github.io/DiagrammeR/">DiagrammeR</a>: pretty diagrams</li>
</ul>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-27" style="background:;">
<hgroup>
<h2>leaflet</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/leaflet1.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-28" style="background:;">
<hgroup>
<h2>dygraphs</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/dygraphs1.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-29" style="background:;">
<hgroup>
<h2>dygraphs (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/dygraphs2.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-30" style="background:;">
<hgroup>
<h2>dygraphs (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/dygraphs3.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-31" style="background:;">
<hgroup>
<h2>dygraphs (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/dygraphs4.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-32" style="background:;">
<hgroup>
<h2>metricsgraphics</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics1.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-33" style="background:;">
<hgroup>
<h2>metricsgraphics (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics2.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-34" style="background:;">
<hgroup>
<h2>metricsgraphics (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics3.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-35" style="background:;">
<hgroup>
<h2>metricsgraphics (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics4.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-36" style="background:;">
<hgroup>
<h2>metricsgraphics (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics5.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-37" style="background:;">
<hgroup>
<h2>metricsgraphics (cont)</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/metricsgraphics6.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-38" style="background:;">
<hgroup>
<h2>networkD3</h2>
</hgroup>
<article data-timings="">
<iframe src="./assets/widgets/networkD31.html" width=100% height=100% allowtransparency="true"> </iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-39" style="background:;">
<hgroup>
<h2>networkD3 (cont)</h2>
</hgroup>