Skip to content

Instantly share code, notes, and snippets.

@stla
Created September 8, 2013 19:27
Show Gist options
  • Save stla/6487673 to your computer and use it in GitHub Desktop.
Save stla/6487673 to your computer and use it in GitHub Desktop.
Short RStudio presentation v0
<!DOCTYPE html>
<html>
<head>
<title>RStudio</title>
<meta charset="utf-8">
<meta name="description" content="RStudio">
<meta name="author" content="">
<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/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. -->
<script data-main="libraries/frameworks/io2012/js/slides"
src="libraries/frameworks/io2012/js/require-1.0.8.min.js">
</script>
<link rel="stylesheet" href = "assets/css/ribbons.css">
<link rel="stylesheet" href = "assets/css/slidify.css">
</head>
<body style="opacity: 0">
<slides class="layout-widescreen">
<!-- LOGO SLIDE -->
<!-- END LOGO SLIDE -->
<!-- TITLE SLIDE -->
<!-- Should I move this to a Local Layout File? -->
<slide class="title-slide segue nobackground">
<hgroup class="auto-fadein">
<h1>RStudio</h1>
<h2></h2>
<p><br/></p>
</hgroup>
</slide>
<!-- SLIDES -->
<slide class="" id="slide-1" style="background:;">
<hgroup>
<h2>Read-And-Delete</h2>
</hgroup>
<article>
<ol>
<li>Edit YAML front matter</li>
<li>Write using R Markdown</li>
<li>Use an empty line followed by three dashes to separate slides!</li>
</ol>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="class" id="id" style="background:;">
<hgroup>
</hgroup>
<article>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-3">
<hgroup>
<h2>C&#39;est quoi, RStudio ?</h2>
</hgroup>
<article>
<hr noshade size=4 color='red'>
<div class='left' style='float:left;width:48%'>
<p>Une interface pour R:</p>
<p><img src="rstudio-windows.png" alt="rstudio-windows" style="width: 500px;"/></p>
</div>
<div class='right' style='float:right;width:48%'>
<p>Qu&#39;a-t-elle de particulier ?</p>
<ul>
<li><p>Conviviale </p></li>
<li><p>Intègre le package <code>knitr</code>: génère des rapports dynamiques en </p>
<ul>
<li><code>html</code></li>
<li>\(\LaTeX\)</li>
<li><code>markdown</code></li>
</ul></li>
</ul>
</div>
</article>
</slide>
<slide class="" id="slide-4" style="background:;">
<hgroup>
<h2>Exemple: fichier de sortie</h2>
</hgroup>
<article>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-5">
<hgroup>
<h2>En \(\LaTeX\)</h2>
</hgroup>
<article>
<hr noshade size=4 color='red'>
<div class='left' style='float:left;width:48%'>
<p>Fichier source:</p>
<iframe src="latexsource.html"></iframe>
</div>
<div class='right' style='float:right;width:48%'>
<p>Fichier pdf de sortie: </p>
<p><embed src="latexsource.pdf" width="500" height="450" type="application/pdf"></p>
</div>
</article>
</slide>
<slide class="" id="slide-6">
<hgroup>
<h2>En Markdown</h2>
</hgroup>
<article>
<hr noshade size=4 color='red'>
<div class='left' style='float:left;width:48%'>
<p>Fichier source:</p>
<p><embed src="markdownsource0.html" height="340" width="500"></p>
<p>Avec <code>pandoc</code>, conversion possible en:
html, docx, odt, \(\LaTeX\), ...</p>
</div>
<div class='right' style='float:right;width:48%'>
<p>Fichier html de sortie:</p>
<p><embed src="markdownsource.html" width="500" height="450"></p>
</div>
</article>
</slide>
<slide class="" id="slide-7" style="background:;">
<hgroup>
<h2>En html</h2>
</hgroup>
<article>
<p>Fichier source:</p>
<iframe src="htmlsource.html" width="500" height="450"></iframe>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-8" style="background:;">
<hgroup>
<h1>Inclure du code</h1>
</hgroup>
<article>
<pre><code class="r">library(ggplot2)
ggplot(data = PlantGrowth, aes(x = group, y = weight, fill = group)) + geom_boxplot()
</code></pre>
<p><img src="figure/unnamed-chunk-1.png" alt="plot of chunk unnamed-chunk-1"> </p>
</article>
<!-- Presenter Notes -->
</slide>
<slide class="" id="slide-9">
<hgroup>
<h2>Inclure du code R</h2>
</hgroup>
<article>
<hr noshade size=4 color='red'>
<div class='left' style='float:left;width:48%'>
<p><em>RStudio: cliquer sur</em> <code>Insert Chunk</code></p>
<iframe src="Rmarkdownsource0.html" scrolling="no" seamless="seamless"></iframe>
</div>
<div class='right' style='float:right;width:48%'>
<iframe src="markdownsource.html" seamless="seamless"></iframe>
</div>
</article>
</slide>
<slide class="" id="slide-10">
<hgroup>
<h2>Inclure du code SAS</h2>
</hgroup>
<article>
<hr noshade size=4 color='red'>
<div class='left' style='float:left;width:48%'>
<iframe src="sassource00.html" scrolling="no"></iframe>
</div>
<div class='right' style='float:right;width:48%'>
<p><embed src="sassource0.html" width="500" height="500"></p>
</div>
</article>
</slide>
<slide class="backdrop"></slide>
</slides>
<!--[if IE]>
<script
src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js">
</script>
<script>CFInstall.check({mode: 'overlay'});</script>
<![endif]-->
</body>
<!-- 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-1.7.min.js"><\/script>')</script>
<!-- Load Javascripts for Widgets -->
<!-- MathJax: Fall back to local if CDN offline but local image fonts are not supported (saves >100MB) -->
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- <script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script> -->
<script>window.MathJax || document.write('<script type="text/x-mathjax-config">MathJax.Hub.Config({"HTML-CSS":{imageFont:null}});<\/script><script src="libraries/widgets/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"><\/script>')
</script>
<!-- LOAD HIGHLIGHTER JS FILES -->
<script src="libraries/highlighters/highlight.js/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<!-- DONE LOADING HIGHLIGHTER JS FILES -->
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment