Skip to content

Commit 101e8cc

Browse files
changement mineur
1 parent 40cb380 commit 101e8cc

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

inst/tutorials/01b_reg_lin/reg_lin_simp.Rmd

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,16 @@ chart(df2, a ~ b) +
471471

472472
```{r homo1-prep}
473473
set.seed(42)
474-
x <- seq(from = 5, to = 50, by = 0.25)
475-
a <- x + rnorm(sd = 3, n = length(x))
476-
b <- a*1.25 + 3 + rnorm(sd = 3, n = length(x))
474+
x <- seq(from = 5, to = 15, by = 0.25)
475+
476+
a1 <- x*1 + 3 + rnorm(sd = 0.5, n = length(x))
477+
b1 <- x*1.1 + 3 + rnorm(sd = 0.5, n = length(x))
478+
c1 <- x*0.7 + 3 + rnorm(sd = 0.5, n = length(x))
477479
478-
df1 <- tibble(
479-
a = a,
480-
b = b
480+
481+
df2 <- tibble(
482+
a = c(x,x,x),
483+
b = c(a1,b1,c1),
481484
)
482485
483486
#chart(df1, a ~ b) +

inst/tutorials/01b_reg_lin/reg_lin_simp.html

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,16 @@ <h2>Outils de diagnostic 2</h2>
403403
<p><img src="reg_lin_simp_files/figure-html/homo1-init-1.png" width="624" /></p>
404404
<div class="tutorial-exercise-support" data-label="homo1-prep" data-caption="Code R" data-completion="1" data-diagnostics="1" data-startover="1" data-lines="0">
405405
<pre class="text"><code>set.seed(42)
406-
x &lt;- seq(from = 5, to = 50, by = 0.25)
407-
a &lt;- x + rnorm(sd = 3, n = length(x))
408-
b &lt;- a*1.25 + 3 + rnorm(sd = 3, n = length(x))
406+
x &lt;- seq(from = 5, to = 15, by = 0.25)
407+
408+
a1 &lt;- x*1 + 3 + rnorm(sd = 0.5, n = length(x))
409+
b1 &lt;- x*1.1 + 3 + rnorm(sd = 0.5, n = length(x))
410+
c1 &lt;- x*0.7 + 3 + rnorm(sd = 0.5, n = length(x))
409411

410-
df1 &lt;- tibble(
411-
a = a,
412-
b = b
412+
413+
df2 &lt;- tibble(
414+
a = c(x,x,x),
415+
b = c(a1,b1,c1),
413416
)
414417

415418
#chart(df1, a ~ b) +
@@ -751,7 +754,7 @@ <h2>Conclusion</h2>
751754
<!--/html_preserve-->
752755
<!--html_preserve-->
753756
<script type="application/shiny-prerendered" data-context="execution_dependencies">
754-
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages","version"]},"class":{"type":"character","attributes":{},"value":["data.frame"]},"row.names":{"type":"integer","attributes":{},"value":[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]}},"value":[{"type":"character","attributes":{},"value":["acepack","assertthat","backports","base","base64enc","BioDataScience","broom","cellranger","chart","checkmate","cli","cluster","codetools","colorspace","compiler","cowplot","crayon","data.io","data.table","datasets","digest","dplyr","ellipse","evaluate","farver","flow","forcats","foreign","Formula","generics","gganimate","ggplot2","ggplotify","ggpubr","glue","graphics","grDevices","grid","gridExtra","gridGraphics","gtable","haven","Hmisc","hms","htmlTable","htmltools","htmlwidgets","httpuv","httr","igraph","inline","jsonlite","knitr","labeling","later","lattice","latticeExtra","lazyeval","learnr","lubridate","magick","magrittr","markdown","MASS","Matrix","methods","mime","modelr","mongolite","munsell","nlme","nnet","pillar","pkgconfig","plyr","prettyunits","progress","promises","proto","pryr","purrr","R6","RColorBrewer","Rcpp","readr","readxl","remotes","rlang","rmarkdown","rpart","rprojroot","rstudioapi","rvcheck","rvest","scales","SciViews","shiny","splines","stats","stringi","stringr","survival","svMisc","tibble","tidyr","tidyselect","tidyverse","tools","tsibble","tweenr","utils","viridis","viridisLite","withr","xfun","xml2","xtable","yaml"]},{"type":"character","attributes":{},"value":["1.4.1","0.2.1","1.1.3","3.5.3","0.1-3","2019.1.0","0.5.2","1.1.0","1.3.0","1.9.1","1.1.0","2.0.8","0.2-16","1.4-1","3.5.3","0.9.4","1.3.4","1.2.2","1.12.2","3.5.3","0.6.18","0.8.0.1","0.4.1","0.13","1.1.0","1.0.0","0.4.0","0.8-71","1.2-3","0.0.2","1.0.3","3.1.1","0.0.3","0.2","1.3.1","3.5.3","3.5.3","3.5.3","2.3","0.3-0","0.3.0","2.1.0","4.2-0","0.4.2","1.13.1","0.3.6","1.3","1.5.1","1.4.0","1.2.4","0.3.15","1.6","1.22","0.3","0.8.0","0.20-38","0.6-28","0.2.2","0.9.2.1","1.7.4","2.0","1.5","0.9","7.3-51.3","1.2-17","3.5.3","0.6","0.1.4","2.0.1","0.5.0","3.1-138","7.3-12","1.3.1","2.0.2","1.8.4","1.0.2","1.2.0","1.0.1","1.0.0","0.1.4","0.3.2","2.4.0","1.1-2","1.0.1","1.3.1","1.3.1","2.0.2","0.3.4","1.12","4.1-13","1.3-2","0.10","0.1.3","0.3.2","1.0.0","1.1.0","1.3.0","3.5.3","3.5.3","1.4.3","1.4.0","2.44-1.1","1.1.0","2.1.1","0.8.3","0.2.5","1.2.1","3.5.3","0.7.0","1.0.1","3.5.3","0.5.1","0.3.0","2.1.2","0.6","1.2.0","1.8-3","2.2.0"]}]}]}
757+
{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages"]}},"value":[{"type":"list","attributes":{"names":{"type":"character","attributes":{},"value":["packages","version"]},"class":{"type":"character","attributes":{},"value":["data.frame"]},"row.names":{"type":"integer","attributes":{},"value":[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]}},"value":[{"type":"character","attributes":{},"value":["acepack","assertthat","backports","base","base64enc","BioDataScience","broom","cellranger","chart","checkmate","cli","cluster","codetools","colorspace","compiler","cowplot","crayon","data.io","data.table","datasets","digest","dplyr","ellipse","evaluate","farver","flow","forcats","foreign","Formula","generics","gganimate","ggplot2","ggplotify","ggpubr","glue","graphics","grDevices","grid","gridExtra","gridGraphics","gtable","haven","Hmisc","hms","htmlTable","htmltools","htmlwidgets","httpuv","httr","igraph","inline","jsonlite","knitr","labeling","later","lattice","latticeExtra","lazyeval","learnr","lubridate","magick","magrittr","markdown","MASS","Matrix","methods","mime","modelr","mongolite","munsell","nlme","nnet","pillar","pkgconfig","plyr","prettyunits","progress","promises","proto","pryr","purrr","R6","RColorBrewer","Rcpp","readr","readxl","remotes","rlang","rmarkdown","rpart","rprojroot","rstudioapi","rvcheck","rvest","scales","SciViews","shiny","splines","stats","stringi","stringr","survival","svMisc","tibble","tidyr","tidyselect","tidyverse","tools","tsibble","tweenr","utils","viridis","viridisLite","withr","xfun","xml2","xtable","yaml"]},{"type":"character","attributes":{},"value":["1.4.1","0.2.1","1.1.3","3.5.3","0.1-3","2019.2.0","0.5.2","1.1.0","1.3.0","1.9.1","1.1.0","2.0.8","0.2-16","1.4-1","3.5.3","0.9.4","1.3.4","1.2.2","1.12.2","3.5.3","0.6.18","0.8.0.1","0.4.1","0.13","1.1.0","1.0.0","0.4.0","0.8-71","1.2-3","0.0.2","1.0.3","3.1.1","0.0.3","0.2","1.3.1","3.5.3","3.5.3","3.5.3","2.3","0.3-0","0.3.0","2.1.0","4.2-0","0.4.2","1.13.1","0.3.6","1.3","1.5.1","1.4.0","1.2.4","0.3.15","1.6","1.22","0.3","0.8.0","0.20-38","0.6-28","0.2.2","0.9.2.1","1.7.4","2.0","1.5","0.9","7.3-51.3","1.2-17","3.5.3","0.6","0.1.4","2.0.1","0.5.0","3.1-138","7.3-12","1.3.1","2.0.2","1.8.4","1.0.2","1.2.0","1.0.1","1.0.0","0.1.4","0.3.2","2.4.0","1.1-2","1.0.1","1.3.1","1.3.1","2.0.2","0.3.4","1.12","4.1-13","1.3-2","0.10","0.1.3","0.3.2","1.0.0","1.1.0","1.3.0","3.5.3","3.5.3","1.4.3","1.4.0","2.44-1.1","1.1.0","2.1.1","0.8.3","0.2.5","1.2.1","3.5.3","0.7.0","1.0.1","3.5.3","0.5.1","0.3.0","2.1.2","0.6","1.2.0","1.8-3","2.2.0"]}]}]}
755758
</script>
756759
<!--/html_preserve-->
757760
</div>

0 commit comments

Comments
 (0)