From ad72f30b9a5425c5ff335d3a9861fe1f3da299b1 Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Tue, 14 Feb 2023 07:37:02 -0600 Subject: [PATCH] Fix some heading issues --- base-R.qmd | 4 ++++ visualize.qmd | 6 ++---- webscraping.qmd | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/base-R.qmd b/base-R.qmd index 2f087d4..7837c24 100644 --- a/base-R.qmd +++ b/base-R.qmd @@ -8,6 +8,8 @@ source("_common.R") status("complete") ``` +## Introduction + To finish off the programming section, we're going to give you a quick tour of the most important base R functions that we don't otherwise discuss in the book. These tools are particularly useful as you do more programming and will help you read code you'll encounter in the wild. @@ -25,6 +27,8 @@ To finish off, we'll briefly discuss two essential plotting functions. ### Prerequisites +This package focuses on base R so doesn't have any real prerequisites, but we'll load the tidyverse in order to explain some of the differences. + ```{r} #| label: setup #| message: false diff --git a/visualize.qmd b/visualize.qmd index 952e528..cbf893d 100644 --- a/visualize.qmd +++ b/visualize.qmd @@ -31,11 +31,9 @@ Each chapter addresses one to a few aspects of creating a data visualization. - Finally, in @sec-communication you will learn how to take your exploratory graphics and turn them into expository graphics, graphics that help the newcomer to your analysis understand what's going on as quickly and easily as possible. -### Learning more - -The absolute best place to learn more is the ggplot2 book: [*ggplot2: Elegant graphics for data analysis (3e)*](https://ggplot2-book.org/). +These three chapters get you started in the world of visualization, but there is much more to learn. +The absolute best place to learn more is the ggplot2 book: [*ggplot2: Elegant graphics for data analysis*](https://ggplot2-book.org/). It goes into much more depth about the underlying theory, and has many more examples of how to combine the individual pieces to solve practical problems. - Another great resource is the ggplot2 extensions gallery . This site lists many of the packages that extend ggplot2 with new geoms and scales. It's a great place to start if you're trying to do something that seems hard with ggplot2. diff --git a/webscraping.qmd b/webscraping.qmd index 0428419..1b382ad 100644 --- a/webscraping.qmd +++ b/webscraping.qmd @@ -7,6 +7,8 @@ source("_common.R") status("complete") ``` +## Introduction + This vignette introduces you to the basics of web scraping with [rvest](https://rvest.tidyverse.org). Web scraping is a very useful tool for extracting data from web pages. Some websites will offer an API, a set of structured HTTP requests that return data as JSON, which you handle using the techniques from @sec-rectangling.