|
|
@@ -1,9 +1,10 @@ |
|
|
|
<!DOCTYPE html> |
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang=""> |
|
|
|
<html lang="" xml:lang=""> |
|
|
|
<head> |
|
|
|
<title>Introduction ggplot2</title> |
|
|
|
<meta charset="utf-8" /> |
|
|
|
<meta name="author" content="Antoine Neuraz" /> |
|
|
|
<script src="libs/header-attrs-2.5/header-attrs.js"></script> |
|
|
|
<link href="libs/remark-css-0.0.1/default.css" rel="stylesheet" /> |
|
|
|
<link rel="stylesheet" href="css/my_style.css" type="text/css" /> |
|
|
|
</head> |
|
|
@@ -159,6 +160,10 @@ ggplot(iris, |
|
|
|
* geom_smooth(method='lm', se=FALSE) |
|
|
|
``` |
|
|
|
|
|
|
|
``` |
|
|
|
## `geom_smooth()` using formula 'y ~ x' |
|
|
|
``` |
|
|
|
|
|
|
|
![](lab01-ggplot-intro_files/figure-html/unnamed-chunk-7-1.png)<!-- --> |
|
|
|
] |
|
|
|
|
|
|
@@ -177,6 +182,10 @@ ggplot(iris, |
|
|
|
* facet_grid(~Species) |
|
|
|
``` |
|
|
|
|
|
|
|
``` |
|
|
|
## `geom_smooth()` using formula 'y ~ x' |
|
|
|
``` |
|
|
|
|
|
|
|
![](lab01-ggplot-intro_files/figure-html/unnamed-chunk-8-1.png)<!-- --> |
|
|
|
] |
|
|
|
--- |
|
|
@@ -195,6 +204,10 @@ ggplot(iris, |
|
|
|
* theme_minimal() |
|
|
|
``` |
|
|
|
|
|
|
|
``` |
|
|
|
## `geom_smooth()` using formula 'y ~ x' |
|
|
|
``` |
|
|
|
|
|
|
|
![](lab01-ggplot-intro_files/figure-html/unnamed-chunk-9-1.png)<!-- --> |
|
|
|
] |
|
|
|
|
|
|
@@ -305,6 +318,8 @@ ggplot(iris, |
|
|
|
### ajouter les points par dessus la distribution |
|
|
|
|
|
|
|
### paufiner le plot (axes, titres, thème) |
|
|
|
|
|
|
|
|
|
|
|
</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> |
|
|
@@ -354,6 +369,32 @@ if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) { |
|
|
|
deleted = true; |
|
|
|
}); |
|
|
|
})(); |
|
|
|
(function() { |
|
|
|
"use strict" |
|
|
|
// Replace <script> tags in slides area to make them executable |
|
|
|
var scripts = document.querySelectorAll( |
|
|
|
'.remark-slides-area .remark-slide-container script' |
|
|
|
); |
|
|
|
if (!scripts.length) return; |
|
|
|
for (var i = 0; i < scripts.length; i++) { |
|
|
|
var s = document.createElement('script'); |
|
|
|
var code = document.createTextNode(scripts[i].textContent); |
|
|
|
s.appendChild(code); |
|
|
|
var scriptAttrs = scripts[i].attributes; |
|
|
|
for (var j = 0; j < scriptAttrs.length; j++) { |
|
|
|
s.setAttribute(scriptAttrs[j].name, scriptAttrs[j].value); |
|
|
|
} |
|
|
|
scripts[i].parentElement.replaceChild(s, scripts[i]); |
|
|
|
} |
|
|
|
})(); |
|
|
|
(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'; |
|
|
|
} |
|
|
|
} |
|
|
|
})(); |
|
|
|
// adds .remark-code-has-line-highlighted class to <pre> parent elements |
|
|
|
// of code chunks containing highlighted lines with class .remark-code-line-highlighted |
|
|
|
(function(d) { |
|
|
@@ -372,17 +413,6 @@ if (window.HTMLWidgets) slideshow.on('afterShowSlide', function (slide) { |
|
|
|
preParents.forEach(p => p.classList.add("remark-code-has-line-highlighted")); |
|
|
|
})(document);</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'); |
|
|
|