From 2799f54f8607cc1ece570a69921e2fa57d442e3f Mon Sep 17 00:00:00 2001 From: "Abner H.B." Date: Wed, 5 Jun 2024 17:23:12 -0400 Subject: [PATCH] Added exercises to the slideshow. Corrected grammar in notes --- 04_basic_data_processing.qmd | 11 +- docs/01_the_r_environment.html | 251 ++---------------- docs/04_basic_data_processing.html | 15 +- .../figure-html/boxplot for weight-1.png | Bin 8483 -> 10116 bytes .../figure-html/histogram for weight-1.png | Bin 15526 -> 15675 bytes docs/index.html | 247 ++--------------- docs/search.json | 49 +--- load_clean_flower_df.R | 7 + slideshow.html | 220 ++++++++++++++- slideshow.qmd | 208 ++++++++++++++- .../boxplot for leaf_area-1.png | Bin 0 -> 9374 bytes .../figure-revealjs/histogram of height-1.png | Bin 0 -> 14725 bytes .../mosaic plot for nitrogen vs treat-1.png | Bin 0 -> 8824 bytes .../figure-revealjs/unnamed-chunk-2-1.png | Bin 0 -> 18182 bytes .../figure-revealjs/unnamed-chunk-3-1.png | Bin 0 -> 10955 bytes .../figure-revealjs/unnamed-chunk-4-1.png | Bin 0 -> 14668 bytes 16 files changed, 469 insertions(+), 539 deletions(-) create mode 100644 load_clean_flower_df.R create mode 100644 slideshow_files/figure-revealjs/boxplot for leaf_area-1.png create mode 100644 slideshow_files/figure-revealjs/histogram of height-1.png create mode 100644 slideshow_files/figure-revealjs/mosaic plot for nitrogen vs treat-1.png create mode 100644 slideshow_files/figure-revealjs/unnamed-chunk-2-1.png create mode 100644 slideshow_files/figure-revealjs/unnamed-chunk-3-1.png create mode 100644 slideshow_files/figure-revealjs/unnamed-chunk-4-1.png diff --git a/04_basic_data_processing.qmd b/04_basic_data_processing.qmd index 2461753..bdbc271 100644 --- a/04_basic_data_processing.qmd +++ b/04_basic_data_processing.qmd @@ -226,14 +226,15 @@ Now that our data is clean, we can get more complete summaries to understand it summary(flower_clean_df) ``` -Now let's imagine we want to study the distribution of values for weight. We can use a histogram to check the shape. +Now let's imagine we want to study the distribution of values for weight. We can use a histogram to check the shape of this distribution. ```{r histogram for weight} hist( flower_clean_df$weight, breaks = 15, + xlim = c(5, 25), xlab = "Weight", - main = "Histogram for weight" + main = "Few weights are above 20" ) ``` @@ -241,9 +242,9 @@ Or we can get a simpler description using a box plot. ```{r boxplot for weight} boxplot( flower_clean_df$weight, - xlab = "height", + ylab = "Weight", col = "darkgreen", - main = "Boxplot for weight" + main = "Most weights are between 9 and 15" ) ``` @@ -279,7 +280,7 @@ legend( ) ``` -Now let's see how frequently the values of nitrogen and treat combine with each other, but only for flowers with a leaf area greater than 13. +Now let's see how frequently the values of nitrogen and treat combine with each other, but only for flowers with a leaf area greater than 13. We can use a mosaic plot for this. ```{r mosaic plot for nitrogen vs treat} nitrogen_by_treat_table = xtabs( diff --git a/docs/01_the_r_environment.html b/docs/01_the_r_environment.html index 70bd2c5..111e84f 100644 --- a/docs/01_the_r_environment.html +++ b/docs/01_the_r_environment.html @@ -2,7 +2,7 @@ - + @@ -49,13 +49,7 @@ "collapse-after": 3, "panel-placement": "start", "type": "textbox", - "limit": 50, - "keyboard-shortcut": [ - "f", - "/", - "s" - ], - "show-item-context": false, + "limit": 20, "language": { "search-no-results-text": "No results", "search-matching-documents-text": "matching documents", @@ -64,7 +58,6 @@ "search-more-match-text": "more match in this document", "search-more-matches-text": "more matches in this document", "search-clear-button-title": "Clear", - "search-text-placeholder": "", "search-detached-cancel-button-title": "Cancel", "search-submit-button-title": "Submit", "search-label": "Search" @@ -80,12 +73,12 @@