r4ds/visualize.qmd

39 lines
1.8 KiB
Plaintext
Raw Normal View History

2022-12-05 02:05:38 +08:00
# Visualize {#sec-visualize .unnumbered}
```{r}
#| echo: false
2022-12-05 02:05:38 +08:00
source("_common.R")
```
After reading the first part of the book, you understand (at least superficially) the most important tools for doing data science.
2022-12-05 02:05:38 +08:00
Now it's time to start diving into the details.
In this part of the book, you'll learn about visualizing data in further depth.
```{r}
#| label: fig-ds-visualize
#| echo: false
#| fig-cap: |
2022-12-05 02:05:38 +08:00
#| Data visualization is often the first step in data exploration.
#| fig-alt: |
2022-12-05 02:05:38 +08:00
#| Our data science model, with visualize highlighted in blue.
#| out.width: NULL
knitr::include_graphics("diagrams/data-science/visualize.png", dpi = 270)
```
Each chapter addresses one to a few aspects of creating a data visualization.
- In @sec-layers you will learn about the layered grammar of graphics.
- In @sec-exploratory-data-analysis, you'll combine visualization with your curiosity and skepticism to ask and answer interesting questions about data.
- Finally, in @sec-communication you will learn how to take your exploratory graphics, elevate them, 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.
2022-12-05 02:05:38 +08:00
2023-02-14 21:37:02 +08:00
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/).
2022-12-05 02:05:38 +08:00
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 <https://exts.ggplot2.tidyverse.org/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.