Skip to content

Commit

Permalink
bump part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Jan 2, 2025
1 parent 7ff499d commit 1da40d4
Show file tree
Hide file tree
Showing 63 changed files with 291 additions and 424 deletions.
4 changes: 2 additions & 2 deletions Part1/packages.bib
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ @Manual{R-knitr
title = {knitr: A General-Purpose Package for Dynamic Report Generation in R},
author = {Yihui Xie},
year = {2024},
note = {R package version 1.47},
note = {R package version 1.49},
url = {https://yihui.org/knitr/},
}

@Manual{R-rmarkdown,
title = {rmarkdown: Dynamic Documents for R},
author = {JJ Allaire and Yihui Xie and Christophe Dervieux and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone},
year = {2024},
note = {R package version 2.27},
note = {R package version 2.29},
url = {https://github.com/rstudio/rmarkdown},
}

Expand Down
Binary file added Part1/s4ssbook_files/figure-html/barplot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/boxplots-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/bp-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/clhs-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/color-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/color-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/color-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/color-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/color-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/facets-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/histogram-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/owndata_c-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/seval-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/simple-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/spcosa-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/stratified-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/systematic-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Part1/s4ssbook_files/figure-html/two_stage-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
382 changes: 148 additions & 234 deletions book/data.html

Large diffs are not rendered by default.

79 changes: 29 additions & 50 deletions book/eda.html
Original file line number Diff line number Diff line change
Expand Up @@ -530,32 +530,23 @@ <h2><span class="header-section-number">3.3</span> Data Inspection<a href="eda.h
<span id="cb181-27"><a href="eda.html#cb181-27" tabindex="-1"></a><span class="co"># Examine genhz vs hznames (wide format)</span></span>
<span id="cb181-28"><a href="eda.html#cb181-28" tabindex="-1"></a><span class="fu">table</span>(h<span class="sc">$</span>genhz, h<span class="sc">$</span>hzname)</span></code></pre></div>
<pre><code>##
## 2BC 2BCt 2Bt1 2Bt2 2Bt3 2Bt4 2Bt5 2CB 2CBt 2Cr 2Crt 2R A A1 A2 AB
## A 0 0 0 0 0 0 0 0 0 0 0 0 97 7 7 0
## BAt 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
## Bt1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## Bt2 1 1 3 8 8 6 1 1 1 0 0 0 0 0 0 0
## Cr 0 0 0 0 0 0 0 0 0 4 2 0 0 0 0 0
## R 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0
## not-used 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## 2BC 2BCt 2Bt1 2Bt2 2Bt3 2Bt4 2Bt5 2CB 2CBt 2Cr 2Crt 2R A A1 A2 AB ABt Ad Ap B BA BAt BC BCt Bt Bt1 Bt2
## A 0 0 0 0 0 0 0 0 0 0 0 0 97 7 7 0 0 1 1 0 0 0 0 0 0 0 0
## BAt 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 31 8 0 0 0 0 0
## Bt1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 8 93 88
## Bt2 1 1 3 8 8 6 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 4 16 0 0 0
## Cr 0 0 0 0 0 0 0 0 0 4 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## R 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## not-used 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
##
## ABt Ad Ap B BA BAt BC BCt Bt Bt1 Bt2 Bt3 Bt4 Bw Bw1 Bw2 Bw3 C CBt
## A 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## BAt 0 0 0 0 31 8 0 0 0 0 0 0 0 0 0 0 0 0 0
## Bt1 2 0 0 0 0 0 0 0 8 93 88 0 0 10 2 2 1 0 0
## Bt2 0 0 0 0 0 0 4 16 0 0 0 47 8 0 0 0 0 6 6
## Cr 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## R 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## not-used 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
##
## Cd Cr Cr/R Crt H1 Oi R Rt
## A 0 0 0 0 0 0 0 0
## BAt 0 0 0 0 0 0 0 0
## Bt1 0 0 0 0 0 0 0 0
## Bt2 1 0 0 0 0 0 0 0
## Cr 0 49 0 20 0 0 0 0
## R 0 0 1 0 0 0 40 1
## not-used 0 0 0 0 1 24 0 0</code></pre>
## Bt3 Bt4 Bw Bw1 Bw2 Bw3 C CBt Cd Cr Cr/R Crt H1 Oi R Rt
## A 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## BAt 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
## Bt1 0 0 10 2 2 1 0 0 0 0 0 0 0 0 0 0
## Bt2 47 8 0 0 0 0 6 6 1 0 0 0 0 0 0 0
## Cr 0 0 0 0 0 0 0 0 0 49 0 20 0 0 0 0
## R 0 0 0 0 0 0 0 0 0 0 1 0 0 0 40 1
## not-used 0 0 0 0 0 0 0 0 0 0 0 0 1 24 0 0</code></pre>
<div class="sourceCode" id="cb183"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb183-1"><a href="eda.html#cb183-1" tabindex="-1"></a><span class="co"># Examine matching pairs (long format)</span></span>
<span id="cb183-2"><a href="eda.html#cb183-2" tabindex="-1"></a>h <span class="sc">%&gt;%</span> <span class="fu">group_by</span>(genhz, hzname) <span class="sc">%&gt;%</span> <span class="fu">count</span>()</span></code></pre></div>
<pre><code>## # A tibble: 43 × 3
Expand All @@ -579,22 +570,14 @@ <h2><span class="header-section-number">3.3</span> Data Inspection<a href="eda.h
<div class="sourceCode" id="cb186"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb186-1"><a href="eda.html#cb186-1" tabindex="-1"></a>h <span class="sc">%&gt;%</span></span>
<span id="cb186-2"><a href="eda.html#cb186-2" tabindex="-1"></a> <span class="fu">select</span>(genhz, clay, total_frags_pct, phfield, effclass) <span class="sc">%&gt;%</span></span>
<span id="cb186-3"><a href="eda.html#cb186-3" tabindex="-1"></a> <span class="fu">summary</span>()</span></code></pre></div>
<pre><code>## genhz clay total_frags_pct phfield
## A :113 Min. :10.00 Min. : 0.00 Min. :4.90
## BAt : 40 1st Qu.:18.00 1st Qu.: 0.00 1st Qu.:6.00
## Bt1 :206 Median :22.00 Median : 5.00 Median :6.30
## Bt2 :118 Mean :23.63 Mean :13.88 Mean :6.18
## Cr : 75 3rd Qu.:28.00 3rd Qu.:20.00 3rd Qu.:6.50
## R : 48 Max. :60.00 Max. :95.00 Max. :7.00
## not-used: 26 NA&#39;s :167 NA&#39;s :381
## effclass
## Length:626
## Class :character
## Mode :character
##
##
##
## </code></pre>
<pre><code>## genhz clay total_frags_pct phfield effclass
## A :113 Min. :10.00 Min. : 0.00 Min. :4.90 Length:626
## BAt : 40 1st Qu.:18.00 1st Qu.: 0.00 1st Qu.:6.00 Class :character
## Bt1 :206 Median :22.00 Median : 5.00 Median :6.30 Mode :character
## Bt2 :118 Mean :23.63 Mean :13.88 Mean :6.18
## Cr : 75 3rd Qu.:28.00 3rd Qu.:20.00 3rd Qu.:6.50
## R : 48 Max. :60.00 Max. :95.00 Max. :7.00
## not-used: 26 NA&#39;s :167 NA&#39;s :381</code></pre>
<p>The <code>summary()</code> function is known as a generic R function. It will return a preprogrammed summary for any R object. Because <code>h</code> is a data frame, we get a summary of each column. Factors will be summarized by their frequency (i.e., number of observations), while numeric or integer variables will print out a five number summary, and characters simply print their length. The number of missing observations for any variable will also be printed if they are present. If any of these metrics look unfamiliar to you, don’t worry we’ll cover them shortly.</p>
<p>When you do have missing data and the function you want to run will not run with missing values, the following options are available:</p>
<ol style="list-style-type: decimal">
Expand All @@ -608,11 +591,9 @@ <h2><span class="header-section-number">3.3</span> Data Inspection<a href="eda.h
<pre><code>## [1] &quot;A&quot; &quot;BAt&quot; &quot;Bt1&quot; &quot;Bt2&quot; &quot;Cr&quot; &quot;R&quot; &quot;not-used&quot;</code></pre>
<div class="sourceCode" id="cb190"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb190-1"><a href="eda.html#cb190-1" tabindex="-1"></a><span class="co"># for characters and factors</span></span>
<span id="cb190-2"><a href="eda.html#cb190-2" tabindex="-1"></a><span class="fu">sort</span>(<span class="fu">unique</span>(h<span class="sc">$</span>hzname)) </span></code></pre></div>
<pre><code>## [1] &quot;2BC&quot; &quot;2BCt&quot; &quot;2Bt1&quot; &quot;2Bt2&quot; &quot;2Bt3&quot; &quot;2Bt4&quot; &quot;2Bt5&quot; &quot;2CB&quot; &quot;2CBt&quot; &quot;2Cr&quot;
## [11] &quot;2Crt&quot; &quot;2R&quot; &quot;A&quot; &quot;A1&quot; &quot;A2&quot; &quot;AB&quot; &quot;ABt&quot; &quot;Ad&quot; &quot;Ap&quot; &quot;B&quot;
## [21] &quot;BA&quot; &quot;BAt&quot; &quot;BC&quot; &quot;BCt&quot; &quot;Bt&quot; &quot;Bt1&quot; &quot;Bt2&quot; &quot;Bt3&quot; &quot;Bt4&quot; &quot;Bw&quot;
## [31] &quot;Bw1&quot; &quot;Bw2&quot; &quot;Bw3&quot; &quot;C&quot; &quot;CBt&quot; &quot;Cd&quot; &quot;Cr&quot; &quot;Cr/R&quot; &quot;Crt&quot; &quot;H1&quot;
## [41] &quot;Oi&quot; &quot;R&quot; &quot;Rt&quot;</code></pre>
<pre><code>## [1] &quot;2BC&quot; &quot;2BCt&quot; &quot;2Bt1&quot; &quot;2Bt2&quot; &quot;2Bt3&quot; &quot;2Bt4&quot; &quot;2Bt5&quot; &quot;2CB&quot; &quot;2CBt&quot; &quot;2Cr&quot; &quot;2Crt&quot; &quot;2R&quot; &quot;A&quot; &quot;A1&quot; &quot;A2&quot; &quot;AB&quot;
## [17] &quot;ABt&quot; &quot;Ad&quot; &quot;Ap&quot; &quot;B&quot; &quot;BA&quot; &quot;BAt&quot; &quot;BC&quot; &quot;BCt&quot; &quot;Bt&quot; &quot;Bt1&quot; &quot;Bt2&quot; &quot;Bt3&quot; &quot;Bt4&quot; &quot;Bw&quot; &quot;Bw1&quot; &quot;Bw2&quot;
## [33] &quot;Bw3&quot; &quot;C&quot; &quot;CBt&quot; &quot;Cd&quot; &quot;Cr&quot; &quot;Cr/R&quot; &quot;Crt&quot; &quot;H1&quot; &quot;Oi&quot; &quot;R&quot; &quot;Rt&quot;</code></pre>
<p>If the <code>unique()</code> function returned typos such as “BT” or “B t”, you could either fix your original dataset or you could make an adjustment in R, such as:</p>
<div class="sourceCode" id="cb192"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb192-1"><a href="eda.html#cb192-1" tabindex="-1"></a>h<span class="sc">$</span>hzname <span class="ot">&lt;-</span> <span class="fu">ifelse</span>(h<span class="sc">$</span>hzname <span class="sc">==</span> <span class="st">&quot;BT&quot;</span>, <span class="st">&quot;Bt&quot;</span>, h<span class="sc">$</span>hzname)</span></code></pre></div>
<p>Typo errors such as these are a common problem with old pedon data in NASIS.</p>
Expand Down Expand Up @@ -1184,10 +1165,8 @@ <h3><span class="header-section-number">3.9.2</span> Circular data<a href="eda.h
<span id="cb258-7"><a href="eda.html#cb258-7" tabindex="-1"></a>aspect <span class="ot">&lt;-</span> <span class="fu">circular</span>(aspect, <span class="at">template=</span><span class="st">&quot;geographic&quot;</span>, <span class="at">units=</span><span class="st">&quot;degrees&quot;</span>, <span class="at">modulo=</span><span class="st">&quot;2pi&quot;</span>)</span>
<span id="cb258-8"><a href="eda.html#cb258-8" tabindex="-1"></a></span>
<span id="cb258-9"><a href="eda.html#cb258-9" tabindex="-1"></a><span class="fu">summary</span>(aspect)</span></code></pre></div>
<pre><code>## n Min. 1st Qu. Median Mean 3rd Qu. Max. Rho
## 101.0000 12.0000 255.0000 195.0000 199.5000 115.0000 20.0000 0.1772
## NA&#39;s
## 5.0000</code></pre>
<pre><code>## n Min. 1st Qu. Median Mean 3rd Qu. Max. Rho NA&#39;s
## 101.0000 12.0000 255.0000 195.0000 199.5000 115.0000 20.0000 0.1772 5.0000</code></pre>
<p>The numeric output is fine, but a following graphic is more revealing, which shows the dominant Southwest slope aspect.</p>
<div class="sourceCode" id="cb260"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb260-1"><a href="eda.html#cb260-1" tabindex="-1"></a><span class="fu">rose.diag</span>(aspect, <span class="at">bins =</span> <span class="dv">8</span>, <span class="at">col=</span><span class="st">&quot;grey&quot;</span>)</span></code></pre></div>
<p><img src="s4ssbook_files/figure-html/unnamed-chunk-116-1.png" width="672" style="display: block; margin: auto;" /></p>
Expand Down
4 changes: 2 additions & 2 deletions book/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -538,10 +538,10 @@ <h2><span class="header-section-number">0.5</span> Install Required Packages<a h
<span id="cb3-12"><a href="index.html#cb3-12" tabindex="-1"></a> <span class="co"># graphics</span></span>
<span id="cb3-13"><a href="index.html#cb3-13" tabindex="-1"></a> <span class="st">&quot;ggplot2&quot;</span>, <span class="st">&quot;latticeExtra&quot;</span>, <span class="st">&quot;maps&quot;</span>, <span class="st">&quot;spData&quot;</span>, <span class="st">&quot;tmap&quot;</span>, <span class="st">&quot;kableExtra&quot;</span>, <span class="st">&quot;corrplot&quot;</span>, <span class="st">&quot;farver&quot;</span>,</span>
<span id="cb3-14"><a href="index.html#cb3-14" tabindex="-1"></a> <span class="st">&quot;mapview&quot;</span>, <span class="st">&quot;ggmap&quot;</span>, <span class="st">&quot;plotrix&quot;</span>, <span class="st">&quot;rpart.plot&quot;</span>, <span class="st">&quot;visreg&quot;</span>, <span class="st">&quot;diagram&quot;</span>, <span class="st">&quot;GGally&quot;</span>, <span class="st">&quot;wesanderson&quot;</span>,</span>
<span id="cb3-15"><a href="index.html#cb3-15" tabindex="-1"></a> <span class="st">&quot;viridisLite&quot;</span>,</span>
<span id="cb3-15"><a href="index.html#cb3-15" tabindex="-1"></a> <span class="st">&quot;viridisLite&quot;</span>, <span class="st">&quot;prettymapr&quot;</span>,</span>
<span id="cb3-16"><a href="index.html#cb3-16" tabindex="-1"></a> <span class="co"># modeling</span></span>
<span id="cb3-17"><a href="index.html#cb3-17" tabindex="-1"></a> <span class="st">&quot;car&quot;</span>, <span class="st">&quot;rms&quot;</span>, <span class="st">&quot;randomForest&quot;</span>, <span class="st">&quot;ranger&quot;</span>, <span class="st">&quot;party&quot;</span>,</span>
<span id="cb3-18"><a href="index.html#cb3-18" tabindex="-1"></a> <span class="st">&quot;caret&quot;</span>, <span class="st">&quot;vegan&quot;</span>, <span class="st">&quot;ape&quot;</span>, <span class="st">&quot;shape&quot;</span>, <span class="st">&quot;modEvA&quot;</span>, <span class="st">&quot;gower&quot;</span>,</span>
<span id="cb3-18"><a href="index.html#cb3-18" tabindex="-1"></a> <span class="st">&quot;caret&quot;</span>, <span class="st">&quot;vegan&quot;</span>, <span class="st">&quot;ape&quot;</span>, <span class="st">&quot;shape&quot;</span>, <span class="st">&quot;modEvA&quot;</span>, <span class="st">&quot;gower&quot;</span>, <span class="st">&quot;MBESS&quot;</span>, <span class="st">&quot;yardstick&quot;</span>,</span>
<span id="cb3-19"><a href="index.html#cb3-19" tabindex="-1"></a> <span class="co"># sampling</span></span>
<span id="cb3-20"><a href="index.html#cb3-20" tabindex="-1"></a> <span class="st">&quot;clhs&quot;</span>, <span class="st">&quot;spcosa&quot;</span></span>
<span id="cb3-21"><a href="index.html#cb3-21" tabindex="-1"></a> )</span>
Expand Down
Binary file modified book/s4ssbook_files/figure-html/unnamed-chunk-170-1.png
Binary file modified book/s4ssbook_files/figure-html/unnamed-chunk-182-1.png
Binary file modified book/s4ssbook_files/figure-html/unnamed-chunk-184-1.png
Binary file modified book/s4ssbook_files/figure-html/unnamed-chunk-62-1.png
18 changes: 6 additions & 12 deletions book/sampling.html
Original file line number Diff line number Diff line change
Expand Up @@ -866,18 +866,12 @@ <h2><span class="header-section-number">5.3</span> Evaluating a Sampling Strateg
<span id="cb399-30"><a href="sampling.html#cb399-30" tabindex="-1"></a></span>
<span id="cb399-31"><a href="sampling.html#cb399-31" tabindex="-1"></a><span class="co"># Summarize the sample values</span></span>
<span id="cb399-32"><a href="sampling.html#cb399-32" tabindex="-1"></a><span class="fu">aggregate</span>(slope <span class="sc">~</span> method, <span class="at">data =</span> s, <span class="cf">function</span>(x) <span class="fu">round</span>(<span class="fu">summary</span>(x)))</span></code></pre></div>
<pre><code>## method slope.Min. slope.1st Qu. slope.Median slope.Mean
## 1 cLHS 3 8 15 16
## 2 CSCS 1 7 15 16
## 3 Simple Random 0 14 17 18
## 4 Simple Random 400 0 6 14 15
## 5 Systematic Random 0 6 12 13
## slope.3rd Qu. slope.Max.
## 1 21 32
## 2 24 36
## 3 22 34
## 4 22 43
## 5 17 34</code></pre>
<pre><code>## method slope.Min. slope.1st Qu. slope.Median slope.Mean slope.3rd Qu. slope.Max.
## 1 cLHS 3 8 15 16 21 32
## 2 CSCS 1 7 15 16 24 36
## 3 Simple Random 0 14 17 18 22 34
## 4 Simple Random 400 0 6 14 15 22 43
## 5 Systematic Random 0 6 12 13 17 34</code></pre>
<div class="sourceCode" id="cb401"><pre class="sourceCode r codeBlocks"><code class="sourceCode r"><span id="cb401-1"><a href="sampling.html#cb401-1" tabindex="-1"></a><span class="co"># Plot overlapping density plots to compare the distributions between the large and small samples</span></span>
<span id="cb401-2"><a href="sampling.html#cb401-2" tabindex="-1"></a><span class="fu">ggplot</span>(s, <span class="fu">aes</span>(<span class="at">x =</span> slope, <span class="at">col =</span> method)) <span class="sc">+</span> </span>
<span id="cb401-3"><a href="sampling.html#cb401-3" tabindex="-1"></a> <span class="fu">geom_density</span>(<span class="at">cex =</span> <span class="dv">2</span>)</span></code></pre></div>
Expand Down
2 changes: 1 addition & 1 deletion book/search_index.json

Large diffs are not rendered by default.

226 changes: 103 additions & 123 deletions book/spatial.html

Large diffs are not rendered by default.

0 comments on commit 1da40d4

Please sign in to comment.