More work on O'Reilly book
* Make width narrower * Convert deps to table * Strip chapter status
This commit is contained in:
@@ -14,12 +14,12 @@ Prerequisites</h2>
|
||||
<p>This chapter focuses on ggplot2, one of the core packages in the tidyverse. To access the datasets, help pages, and functions used in this chapter, load the tidyverse by running this code:</p>
|
||||
<div class="cell">
|
||||
<pre data-type="programlisting" data-code-language="downlit">library(tidyverse)
|
||||
#> ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.2 ──
|
||||
#> ── Attaching packages ──────────────────────────────────── tidyverse 1.3.2 ──
|
||||
#> ✔ ggplot2 3.4.0.9000 ✔ purrr 0.9000.0.9000
|
||||
#> ✔ tibble 3.1.8 ✔ dplyr 1.0.99.9000
|
||||
#> ✔ tidyr 1.2.1.9001 ✔ stringr 1.4.1.9000
|
||||
#> ✔ readr 2.1.3 ✔ forcats 0.5.2
|
||||
#> ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
|
||||
#> ── Conflicts ─────────────────────────────────────── tidyverse_conflicts() ──
|
||||
#> ✖ dplyr::filter() masks stats::filter()
|
||||
#> ✖ dplyr::lag() masks stats::lag()</pre>
|
||||
</div>
|
||||
@@ -45,14 +45,14 @@ The<code>mpg</code> data frame</h2>
|
||||
<div class="cell">
|
||||
<pre data-type="programlisting" data-code-language="downlit">mpg
|
||||
#> # A tibble: 234 × 11
|
||||
#> manufacturer model displ year cyl trans drv cty hwy fl class
|
||||
#> <chr> <chr> <dbl> <int> <int> <chr> <chr> <int> <int> <chr> <chr>
|
||||
#> 1 audi a4 1.8 1999 4 auto(l5) f 18 29 p compa…
|
||||
#> 2 audi a4 1.8 1999 4 manual(m5) f 21 29 p compa…
|
||||
#> 3 audi a4 2 2008 4 manual(m6) f 20 31 p compa…
|
||||
#> 4 audi a4 2 2008 4 auto(av) f 21 30 p compa…
|
||||
#> 5 audi a4 2.8 1999 6 auto(l5) f 16 26 p compa…
|
||||
#> 6 audi a4 2.8 1999 6 manual(m5) f 18 26 p compa…
|
||||
#> manufacturer model displ year cyl trans drv cty hwy fl class
|
||||
#> <chr> <chr> <dbl> <int> <int> <chr> <chr> <int> <int> <chr> <chr>
|
||||
#> 1 audi a4 1.8 1999 4 auto(l5) f 18 29 p comp…
|
||||
#> 2 audi a4 1.8 1999 4 manual(… f 21 29 p comp…
|
||||
#> 3 audi a4 2 2008 4 manual(… f 20 31 p comp…
|
||||
#> 4 audi a4 2 2008 4 auto(av) f 21 30 p comp…
|
||||
#> 5 audi a4 2.8 1999 6 auto(l5) f 16 26 p comp…
|
||||
#> 6 audi a4 2.8 1999 6 manual(… f 18 26 p comp…
|
||||
#> # … with 228 more rows</pre>
|
||||
</div>
|
||||
<p>Among the variables in <code>mpg</code> are:</p>
|
||||
|
||||
Reference in New Issue
Block a user