Skip to content

Commit

Permalink
differences for PR #885
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 15, 2024
1 parent 83512c6 commit 73ba5b0
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 1,742 deletions.
2 changes: 1 addition & 1 deletion 01-rstudio-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ function (name, pos = -1L, envir = as.environment(pos), all.names = FALSE,
}
else all.names
}
<bytecode: 0x5652f6eaa8e8>
<bytecode: 0x564ae3709928>
<environment: namespace:base>
```

Expand Down
2 changes: 1 addition & 1 deletion 02-project-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ls -lh data/gapminder_data.csv
```

```{.output}
-rw-r--r-- 1 runner docker 80K Jan 4 17:27 data/gapminder_data.csv
-rw-r--r-- 1 runner docker 80K Feb 15 13:23 data/gapminder_data.csv
```

The file size is 80K.
Expand Down
6 changes: 3 additions & 3 deletions 13-dplyr.md → 12-dplyr.md
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ ggplot(data = americas, mapping = aes(x = year, y = lifeExp)) +
theme(axis.text.x = element_text(angle = 45))
```

<img src="fig/13-dplyr-rendered-unnamed-chunk-27-1.png" style="display: block; margin: auto;" />
<img src="fig/12-dplyr-rendered-unnamed-chunk-27-1.png" style="display: block; margin: auto;" />

This code makes the right plot but it also creates an intermediate variable
(`americas`) that we might not have any other uses for. Just as we used
Expand All @@ -604,7 +604,7 @@ gapminder %>%
theme(axis.text.x = element_text(angle = 45))
```

<img src="fig/13-dplyr-rendered-unnamed-chunk-28-1.png" style="display: block; margin: auto;" />
<img src="fig/12-dplyr-rendered-unnamed-chunk-28-1.png" style="display: block; margin: auto;" />

More examples of using the function `mutate()` and the `ggplot2` package.

Expand All @@ -622,7 +622,7 @@ gapminder %>%
theme_minimal()
```

<img src="fig/13-dplyr-rendered-unnamed-chunk-29-1.png" style="display: block; margin: auto;" />
<img src="fig/12-dplyr-rendered-unnamed-chunk-29-1.png" style="display: block; margin: auto;" />

::::::::::::::::::::::::::::::::::::::: challenge

Expand Down
Loading

0 comments on commit 73ba5b0

Please sign in to comment.