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 @@