-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathindex.qmd
116 lines (79 loc) · 7.96 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
title: "<i style='font-family:Literata;font-size:2.75rem;font-weight:800;line-height:.9;'>Graphic Design with ggplot2</i>"
---
![](images/logo.png){style="float:right;padding: 0 0 0 10px;" fig-alt="Course Hex Logo" width="175"}
<h1 style="font-weight:800;"> How to Create Engaging and Complex Visualizations in R</h1>
An rstudio::conf(2022) Workshop by Cédric Scherer
------------------------------------------------------------------------
<span class='code'>📆  July 25 and 26, 2022</span>\
<span class='code'>⏰  09:00 - 17:00</span>\
<span class='code'>🏨  National Harbor 4/5</span>\
<span class='code'>✍️  [rstd.io/conf](http://rstd.io/conf)</span>
------------------------------------------------------------------------
# Course Overview
Creating engaging and accessible data visualizations of high quality in an efficient and preferably reproducible way is an essential tool in a data scientist's toolbox. After completing the course, participants will have a solid understanding of data visualization principles and the functionality of the ggplot2 graphics library and helpful extension libraries to create highly customized graphics without the need for post-processing.
We will discuss the main concepts of the grammar of graphics and use hands-on examples to explore ggplot2's utility to create multi-layered, more complex graphs. The workshop covers a short overview of the basics of ggplot2 and quickly focuses on the most important steps and helpful tips to create visually appealing and complex graphics both in theory and practice. The power of ggplot2 will be illustrated with advanced real--life examples that help to understand data visualization principles and useful coding tricks.
The course covers complex code examples that are suited for more experienced ggplot2 users but designed to be informative for participants with minimal prior experience in ggplot2 and data visualization. As part of the training, attendees can download the course material from the course webpage for future reference.
## Learning objectives
- Understanding the general concepts of ggplot2.
- Learning the many options of customizing a ggplot.
- Gaining the major steps need to create engaging graphics.
- Being able to generate complex plots without the need of post-processing.
## Is this course for me?
This course will be appropriate for you if you answer yes to these questions:
- Do you aim to build graphics in a fully reproducible way without the need to manually adjust details afterwards?
- Do you enjoy using the {ggplot2} package but are interested in doing more with it?
- Would you like to learn how to improve future data visualizations in terms of accessibility, impact, and complexity?
# Instructor
![](images/cedric.png){style="float:right;padding: 0 0 0 10px;" fig-alt="Headshot of Dr. Cédric Scherer" width="200"}
[**Dr. Cédric Scherer**](http://cedricscherer.com/) (he/him) is a graduated computational ecologist with a passion for design. After his PhD, he combined his expertise in analyzing and visualizing large data sets in R with his passion to become an independent data visualization designer and specialist. Cédric has created visualizations across all disciplines, purposes, and styles and regularly teaches data visualization principles, the R programming language, and ggplot2. Due to regular participation in social data challenges such as [#TidyTuesday](https://github.com/rfordatascience/tidytuesday), he is now well known for complex and visually appealing figures, entirely made with ggplot2, that look as if they have been created with a vector design tool.
<div align="center">
<a href="https://www.cedricscherer.com"><img border="0" alt="Blog" src="https://assets.dryicons.com/uploads/icon/svg/4926/home.svg" width="35" height="35"></a> 
<a href="mailto:[email protected]"><img border="0" alt="Email" src="https://assets.dryicons.com/uploads/icon/svg/8009/02dc3a5c-6504-4347-85fb-3f510cfecc45.svg" width="35" height="35"></a> 
<a href="https://twitter.com/CedScherer"><img border="0" alt="Twitter" src="https://assets.dryicons.com/uploads/icon/svg/8385/c23f7ffc-ca8d-4246-8978-ce9f6d5bcc99.svg" width="35" height="35"></a> 
<a href="https://www.instagram.com/cedscherer/"><img border="0" alt="Instagram" src="https://assets.dryicons.com/uploads/icon/svg/8330/62263227-bb78-4b42-a9a9-e222e0cc7b97.svg" width="35" height="35"></a> 
<a href="https://www.behance.net/cedscherer"><img border="0" alt="Behance" src="https://assets.dryicons.com/uploads/icon/svg/8264/04073ce3-5b98-4f32-88d3-82b2ef828066.svg" width="35" height="35"></a> 
<a href="https://www.linkedin.com/in/cedricpscherer/"><img border="0" alt="LinkedIn" src="https://assets.dryicons.com/uploads/icon/svg/8337/a347cd89-1662-4421-be90-58e5e8004eae.svg" width="35" height="35"></a>  
<a href="https://www.buymeacoffee.com/z3tt" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" alt="Buy Me A Coffee" style="height: 35px !important;width: 122px !important;" ></a>
</div>
# Prework
The workshop will also cover the basic logic of ggplot2 and its components. However, some pre-knowledge on how the package works is beneficial for following the examples and for the group exercises. A good overview is provided might by the "First Steps" chapter of the ggplot2 book by Hadley Wickham et al.: [ggplot2-book.org/getting-started.html](https://ggplot2-book.org/getting-started.html)
The example codes and the hands-on workshop parts are run in the Rstudio cloud. Thus, nothing but a laptop is needed.
If you want to run the workshop content locally on your machine, please make sure to install a suitable IDE (Rstudio, VS Code or others), a recent version of R (4.1+) and the following packages and typefaces.
*For Mac OS users:*
Please make sure that [XQuartz is installed](https://www.xquartz.org/) which is needed to use the cairo pdf device.
## Required Packages
- **tidyverse packages and friends**
- ggplot2, readr, tibble, dplyr, tidyr, forcats, stringr, lubridate, here, systemfonts, scales
- **extension packages**
- ggrepel, ggforce, ggtext, ggdist, ggbeeswarm, gghalves, ggblur, patchwork
- **color packages**
- viridis, RColorBrewer, rcartocolor, scico, ggsci, ggthemes, nord, MetBrewer, colorspace, colorblindr
- **util packages**
- magick, grid, grDevices
- **data packages**
- palmerpenguins, rnaturalearth
- **rspatial packages**
- sf, rmapshaper
Run this code to install the packages if needed:
packages <- c(
"ggplot2", "readr", "tibble", "tidyr", "forcats", "stringr",
"lubridate", "here", "systemfonts", "magick", "scales", "grid",
"grDevices", "colorspace", "viridis", "RColorBrewer", "rcartocolor",
"scico", "ggsci", "ggthemes", "nord", "MetBrewer", "ggrepel",
"ggforce", "ggtext", "ggdist", "ggbeeswarm", "gghalves", "patchwork",
"palmerpenguins", "rnaturalearth", "sf", "rmapshaper", "devtools"
)
install.packages(setdiff(packages, rownames(installed.packages())))
## install {colorblindr} and requirements
remotes::install_github("wilkelab/cowplot")
remotes::install_github("clauswilke/colorblindr")
## Required Typefaces
We will make use of custom fonts. A lot.
If you want to follow all contents locally, make sure the following typefaces are installed:
- Roboto Condensed: <a href='https://fonts.google.com/specimen/Roboto+Condensed' target="_blank">fonts.google.com/specimen/Roboto+Condensed</a>
- Cabinet Grotesk: <a href='https://fontshare.com/fonts/cabinet-grotesk' target="_blank">fontshare.com/fonts/cabinet-grotesk</a>
- Tabular: <a href='https://fontshare.com/fonts/tabular' target="_blank">fontshare.com/fonts/tabular</a>
- Boska: <a href='https://fontshare.com/fonts/boska' target="_blank">fontshare.com/fonts/boska</a>
- Pally: <a href='https://fontshare.com/fonts/pally' target="_blank">fontshare.com/fonts/pally</a>
You can download all typefaces as a single zip file [here](ggplot2-course-fonts.zip).