Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
larmarange committed Feb 20, 2024
1 parent 36e69fb commit 6043aba
Show file tree
Hide file tree
Showing 89 changed files with 23,487 additions and 21,998 deletions.
30,883 changes: 16,283 additions & 14,600 deletions analyse-R.html

Large diffs are not rendered by default.

Binary file modified analyse-R.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion analyse-de-reseaux.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<title>Analyse de réseaux</title>

<script src="libs/header-attrs-2.21/header-attrs.js"></script>
<script src="libs/header-attrs-2.25/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/paper.min.css" rel="stylesheet" />
Expand Down
106 changes: 53 additions & 53 deletions analyse-de-sequences.html

Large diffs are not rendered by default.

638 changes: 319 additions & 319 deletions analyse-de-survie.html

Large diffs are not rendered by default.

145 changes: 74 additions & 71 deletions analyse-des-correspondances-multiples.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion analyse-spatiale.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<title>Analyse spatiale</title>

<script src="libs/header-attrs-2.21/header-attrs.js"></script>
<script src="libs/header-attrs-2.25/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/paper.min.css" rel="stylesheet" />
Expand Down
2 changes: 1 addition & 1 deletion analyse-textuelle.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<title>Analyse textuelle</title>

<script src="libs/header-attrs-2.21/header-attrs.js"></script>
<script src="libs/header-attrs-2.25/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/paper.min.css" rel="stylesheet" />
Expand Down
50 changes: 25 additions & 25 deletions annotations-mathematiques.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<title>Annotations mathématiques</title>

<script src="libs/header-attrs-2.21/header-attrs.js"></script>
<script src="libs/header-attrs-2.25/header-attrs.js"></script>
<script src="libs/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="libs/bootstrap-3.3.5/css/paper.min.css" rel="stylesheet" />
Expand Down Expand Up @@ -490,39 +490,39 @@ <h1 class="title toc-ignore">Annotations mathématiques</h1>
<div id="combiner-texte-et-expression" class="section level2 hasAnchor">
<h2 class="hasAnchor">Combiner texte et expression<a href="#combiner-texte-et-expression" class="anchor-section" aria-label="Anchor link to header"></a></h2>
<p>On aura recours à la fonction <code data-pkg="base">paste</code> à l’intérieur de l’appel à <code data-pkg="base">expression</code>. Un exemple :</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># données aléatoires</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>df <span class="ot">&lt;-</span> <span class="fu">data.frame</span>(<span class="at">x =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">y =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>))</span>
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(ggplot2)</span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="fu">ggplot</span>(df) <span class="sc">+</span></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">aes</span>(<span class="at">x =</span> x, <span class="at">y =</span> y) <span class="sc">+</span></span>
<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">xlab</span>(<span class="fu">expression</span>(<span class="fu">hat</span>(mu)[<span class="dv">0</span>])) <span class="sc">+</span></span>
<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">ylab</span>(<span class="fu">expression</span>(alpha<span class="sc">^</span>beta)) <span class="sc">+</span></span>
<span id="cb1-10"><a href="#cb1-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">ggtitle</span>(<span class="fu">expression</span>(<span class="fu">paste</span>(<span class="st">&quot;Plot of &quot;</span>, alpha<span class="sc">^</span>beta, <span class="st">&quot; versus &quot;</span>, <span class="fu">hat</span>(mu)[<span class="dv">0</span>])))</span></code></pre></div>
<div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" tabindex="-1"></a><span class="co"># données aléatoires</span></span>
<span id="cb1-2"><a href="#cb1-2" tabindex="-1"></a>df <span class="ot">&lt;-</span> <span class="fu">data.frame</span>(<span class="at">x =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">y =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>))</span>
<span id="cb1-3"><a href="#cb1-3" tabindex="-1"></a></span>
<span id="cb1-4"><a href="#cb1-4" tabindex="-1"></a><span class="fu">library</span>(ggplot2)</span>
<span id="cb1-5"><a href="#cb1-5" tabindex="-1"></a><span class="fu">ggplot</span>(df) <span class="sc">+</span></span>
<span id="cb1-6"><a href="#cb1-6" tabindex="-1"></a> <span class="fu">aes</span>(<span class="at">x =</span> x, <span class="at">y =</span> y) <span class="sc">+</span></span>
<span id="cb1-7"><a href="#cb1-7" tabindex="-1"></a> <span class="fu">geom_point</span>() <span class="sc">+</span></span>
<span id="cb1-8"><a href="#cb1-8" tabindex="-1"></a> <span class="fu">xlab</span>(<span class="fu">expression</span>(<span class="fu">hat</span>(mu)[<span class="dv">0</span>])) <span class="sc">+</span></span>
<span id="cb1-9"><a href="#cb1-9" tabindex="-1"></a> <span class="fu">ylab</span>(<span class="fu">expression</span>(alpha<span class="sc">^</span>beta)) <span class="sc">+</span></span>
<span id="cb1-10"><a href="#cb1-10" tabindex="-1"></a> <span class="fu">ggtitle</span>(<span class="fu">expression</span>(<span class="fu">paste</span>(<span class="st">&quot;Plot of &quot;</span>, alpha<span class="sc">^</span>beta, <span class="st">&quot; versus &quot;</span>, <span class="fu">hat</span>(mu)[<span class="dv">0</span>])))</span></code></pre></div>
<p><img src="graphs/annotations-mathematiques/unnamed-chunk-1-1.png" width="1050" /></p>
</div>
<div id="intégrer-une-valeur-calculée-dans-une-expression" class="section level2 hasAnchor">
<h2 class="hasAnchor">Intégrer une valeur calculée dans une expression<a href="#intégrer-une-valeur-calculée-dans-une-expression" class="anchor-section" aria-label="Anchor link to header"></a></h2>
<p>Pour intégrer une valeur pré-calculée, et donc stockée dans un objet R, dans une expression, on aura recours à la fonction <code data-pkg="base">substitute</code>.</p>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>x_mean <span class="ot">&lt;-</span> <span class="fl">1.5</span></span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>x_sd <span class="ot">&lt;-</span> <span class="fl">1.2</span></span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a>df <span class="ot">&lt;-</span> <span class="fu">data.frame</span>(<span class="at">x =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>, x_mean, x_sd))</span>
<span id="cb2-4"><a href="#cb2-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb2-5"><a href="#cb2-5" aria-hidden="true" tabindex="-1"></a><span class="fu">ggplot</span>(df) <span class="sc">+</span></span>
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a> <span class="fu">aes</span>(<span class="at">x =</span> x) <span class="sc">+</span></span>
<span id="cb2-7"><a href="#cb2-7" aria-hidden="true" tabindex="-1"></a> <span class="fu">geom_histogram</span>(<span class="at">binwidth =</span> .<span class="dv">25</span>) <span class="sc">+</span> </span>
<span id="cb2-8"><a href="#cb2-8" aria-hidden="true" tabindex="-1"></a> <span class="fu">ggtitle</span>(</span>
<span id="cb2-9"><a href="#cb2-9" aria-hidden="true" tabindex="-1"></a> <span class="fu">substitute</span>(</span>
<span id="cb2-10"><a href="#cb2-10" aria-hidden="true" tabindex="-1"></a> <span class="fu">paste</span>(X[i], <span class="st">&quot; ~ N(&quot;</span>, mu, <span class="st">&quot;=&quot;</span>, m, <span class="st">&quot;, &quot;</span>, sigma<span class="sc">^</span><span class="dv">2</span>, <span class="st">&quot;=&quot;</span>, s2, <span class="st">&quot;)&quot;</span>),</span>
<span id="cb2-11"><a href="#cb2-11" aria-hidden="true" tabindex="-1"></a> <span class="fu">list</span>(<span class="at">m =</span> x_mean, <span class="at">s2 =</span> x_sd<span class="sc">^</span><span class="dv">2</span>)</span>
<span id="cb2-12"><a href="#cb2-12" aria-hidden="true" tabindex="-1"></a> )</span>
<span id="cb2-13"><a href="#cb2-13" aria-hidden="true" tabindex="-1"></a> )</span></code></pre></div>
<div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" tabindex="-1"></a>x_mean <span class="ot">&lt;-</span> <span class="fl">1.5</span></span>
<span id="cb2-2"><a href="#cb2-2" tabindex="-1"></a>x_sd <span class="ot">&lt;-</span> <span class="fl">1.2</span></span>
<span id="cb2-3"><a href="#cb2-3" tabindex="-1"></a>df <span class="ot">&lt;-</span> <span class="fu">data.frame</span>(<span class="at">x =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>, x_mean, x_sd))</span>
<span id="cb2-4"><a href="#cb2-4" tabindex="-1"></a></span>
<span id="cb2-5"><a href="#cb2-5" tabindex="-1"></a><span class="fu">ggplot</span>(df) <span class="sc">+</span></span>
<span id="cb2-6"><a href="#cb2-6" tabindex="-1"></a> <span class="fu">aes</span>(<span class="at">x =</span> x) <span class="sc">+</span></span>
<span id="cb2-7"><a href="#cb2-7" tabindex="-1"></a> <span class="fu">geom_histogram</span>(<span class="at">binwidth =</span> .<span class="dv">25</span>) <span class="sc">+</span> </span>
<span id="cb2-8"><a href="#cb2-8" tabindex="-1"></a> <span class="fu">ggtitle</span>(</span>
<span id="cb2-9"><a href="#cb2-9" tabindex="-1"></a> <span class="fu">substitute</span>(</span>
<span id="cb2-10"><a href="#cb2-10" tabindex="-1"></a> <span class="fu">paste</span>(X[i], <span class="st">&quot; ~ N(&quot;</span>, mu, <span class="st">&quot;=&quot;</span>, m, <span class="st">&quot;, &quot;</span>, sigma<span class="sc">^</span><span class="dv">2</span>, <span class="st">&quot;=&quot;</span>, s2, <span class="st">&quot;)&quot;</span>),</span>
<span id="cb2-11"><a href="#cb2-11" tabindex="-1"></a> <span class="fu">list</span>(<span class="at">m =</span> x_mean, <span class="at">s2 =</span> x_sd<span class="sc">^</span><span class="dv">2</span>)</span>
<span id="cb2-12"><a href="#cb2-12" tabindex="-1"></a> )</span>
<span id="cb2-13"><a href="#cb2-13" tabindex="-1"></a> )</span></code></pre></div>
<p><img src="graphs/annotations-mathematiques/unnamed-chunk-2-1.png" width="1050" /></p>
</div>
<div id="syntaxe-de-plotmath" class="section level2 hasAnchor">
<h2 class="hasAnchor">Syntaxe de plotmath<a href="#syntaxe-de-plotmath" class="anchor-section" aria-label="Anchor link to header"></a></h2>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">demo</span>(plotmath)</span></code></pre></div>
<div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" tabindex="-1"></a><span class="fu">demo</span>(plotmath)</span></code></pre></div>
<p><img src="graphs/annotations-mathematiques/unnamed-chunk-4-1.png" width="1800" /><img src="graphs/annotations-mathematiques/unnamed-chunk-4-2.png" width="1800" /><img src="graphs/annotations-mathematiques/unnamed-chunk-4-3.png" width="1800" /><img src="graphs/annotations-mathematiques/unnamed-chunk-4-4.png" width="1800" /><img src="graphs/annotations-mathematiques/unnamed-chunk-4-5.png" width="1800" /></p>
</div>

Expand Down
Loading

0 comments on commit 6043aba

Please sign in to comment.