Typo + grammatical fixes + issue triage (#1217)

* Fix ex wording + grammatical, closes #1209

* Suppress warnings, closes #1210

* Update screenshot, closes #1211

* Grammatical

* Typos + grammatical

* Update workflow-basics.qmd

* Update workflow-basics.qmd

* Update workflow-basics.qmd

* Update workflow-help.qmd

* Update workflow-pipes.qmd
This commit is contained in:
Mine Cetinkaya-Rundel
2023-01-05 00:26:14 -05:00
committed by GitHub
parent e3b8211853
commit b4bde71f35
8 changed files with 85 additions and 84 deletions

View File

@@ -108,7 +108,7 @@ Our ultimate goal in this chapter is to recreate the following visualization dis
#| fig-alt: >
#| A scatterplot of body mass vs. flipper length of penguins, with a
#| smooth curve displaying the relationship between these two variables
#| overlaid. The plot displays a positive, fairly linear, relatively
#| overlaid. The plot displays a positive, fairly linear, and relatively
#| strong relationship between these two variables. Species (Adelie,
#| Chinstrap, and Gentoo) are represented with different colors and
#| shapes. The relationship between body mass and flipper length is
@@ -186,7 +186,7 @@ You'll learn a whole bunch of geoms throughout the book, particularly in @sec-la
```{r}
#| fig-alt: >
#| A scatterplot of body mass vs. flipper length of penguins. The plot
#| displays a positive, linear, relatively strong relationship between
#| displays a positive, linear, and relatively strong relationship between
#| these two variables.
ggplot(
@@ -232,7 +232,7 @@ Throughout the book you will make many more ggplots and have many more opportuni
#| warning: false
#| fig-alt: >
#| A scatterplot of body mass vs. flipper length of penguins. The plot
#| displays a positive, fairly linear, relatively strong relationship
#| displays a positive, fairly linear, and relatively strong relationship
#| between these two variables. Species (Adelie, Chinstrap, and Gentoo)
#| are represented with different colors.
@@ -326,7 +326,7 @@ Other arguments match the aesthetic mappings, `x` is the x-axis label, `y` is th
#| fig-alt: >
#| A scatterplot of body mass vs. flipper length of penguins, with a
#| smooth curve displaying the relationship between these two variables
#| overlaid. The plot displays a positive, fairly linear, relatively
#| overlaid. The plot displays a positive, fairly linear, and relatively
#| strong relationship between these two variables. Species (Adelie,
#| Chinstrap, and Gentoo) are represented with different colors and
#| shapes. The relationship between body mass and flipper length is
@@ -771,7 +771,7 @@ You will learn about many other geoms for visualizing distributions of variables
How can you see this information when you run `mpg`?
2. Make a scatterplot of `hwy` vs. `displ` using the `mpg` data frame.
Then, map a third, numerical variable to `color`, `size`, and `shape`.
Next, map a third, numerical variable to `color`, then `size`, then both `color` and `size`, then `shape`.
How do these aesthetics behave differently for categorical vs. numerical variables?
3. In the scatterplot of `hwy` vs. `displ`, what happens if you map a third variable to `linewidth`?
@@ -781,7 +781,7 @@ You will learn about many other geoms for visualizing distributions of variables
5. Make a scatterplot of `bill_depth_mm` vs. `bill_length_mm` and color the points by `species`.
What does adding coloring by species reveal about the relationship between these two variables?
6. Why does the following yield two separate legends.
6. Why does the following yield two separate legends?
How would you fix it to combine the two legends?
```{r}
@@ -810,6 +810,7 @@ That's the job of `ggsave()`, which will save the most recent plot to disk:
```{r}
#| fig-show: hide
#| warning: false
ggplot(penguins, aes(x = flipper_length_mm, y = body_mass_g)) +
geom_point()