-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.Rmd
286 lines (207 loc) · 7.17 KB
/
index.Rmd
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
---
title: "R-Ladies Themed<br>xaringan Template"
subtitle: "Presentation subtitle"
author: "R-Ladies Global"
institute: "Your Institute"
date: "March 16th, 2021"
output:
xaringan::moon_reader:
lib_dir: libs
css:
- default
- rladies
- rladies-fonts
- css/rladies-mod.css
seal: false
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
ratio: 4:3
---
```{r setup, include = FALSE}
# loading libraries
library(tidyverse)
library(palmerpenguins)
library(fontawesome)
# preset code chunk options
knitr::opts_chunk$set(dpi = 300, # ensures high resolution images
echo = FALSE, # FALSE: code chunks don't show
warning = FALSE, # FALSE: suppresses warning messages
error = FALSE) # FALSE: Suppresses error messages
```
class: title-slide, center, middle, inverse
background-image: url(img/PurpleSky.jpg)
background-position: bottom
background-size: cover
# `r rmarkdown::metadata$title`
Photo by [Vincentiu Solomon](https://unsplash.com/@vincentiu)
???
This slide uses:
- a custom `title-slide` class that removes the slide number from the title slide
- a background image
- background-image: url(img/PurpleSky.jpg)
- background-position: bottom
- background-size: cover
---
class: inverse, middle, center
<img style="border-radius: 50%;"
src="img/RLadiesGlobal.png"
width="150px"
alt="R-Ladies logo"
/>
# R-Ladies Global
[`r fontawesome::fa("link", a11y = "sem", fill = "#FFFFFF")` rladies.org](https://rladies.org)<br/>
[`r fontawesome::fa("twitter", a11y = "sem", fill = "#FFFFFF")` @RLadiesGlobal](https://twitter.com/rladiesglobal)<br/>
[`r fontawesome::fa("paper-plane", a11y = "sem", fill = "#FFFFFF")` [email protected]](mailto:[email protected])<br>
[`r fontawesome::fa("slack", a11y = "sem", fill = "#FFFFFF")` Join the Slack](https://rladies-community-slack.herokuapp.com/)
???
Hello! My name is R-Ladies Global and I'm excited to be here to help promote gender diversity in the R community.
This slide uses:
- `rmarkdown::metadata` to access YAML metadata
- icons from the fontawesome package with the `ally = "sem"` (semantic attribute) accessibility feature.
- image inserted using html code and including the alternative text attribute
--
If you like this R-Ladies themed xaringan template, you can copy it to your computer: **usethis::use_course("spcanelon/RLadies-xaringan-template")**
And learn how to deploy xaringan slides to GitHub Pages in this blog post:<br> [silvia.rbind.io/2021-03-16-deploying-xaringan-slides](https://silvia.rbind.io/2021-03-16-deploying-xaringan-slides)
???
This slide uses:
- the `inverse`, `middle`, and `center` slide classes
- an image inserted with html
---
.left-column[
# R-Ladies Global
]
.right-column[
## Mission
R-Ladies is a worldwide organization whose mission is to promote Gender Diversity in the R community.
The R community suffers from an underrepresentation of minority genders (including but not limited to cis/trans women, trans men, non-binary, genderqueer, agender) in every role and area of participation, whether as leaders, package developers, conference speakers, conference participants, educators, or users (see recent stats).
.footnote[
----
Original source: https://rladies.org/about-us]
]
???
This slide uses:
- the `.left-column[]` and `.right-column[]` classes
- a horizontal bar
- the `.footnote[]` class
---
# Making lists and emphasizing text
--
The R-Ladies Community has:
--
* 85,144 members
--
* Across 56 countries
--
* and 198 chapters worldwide
--
-----
And with the help of Markdown you can write text in **bold** and _italics_
--
1. And make numbered lists
1. like this one
.footnote[
These numbers come from the [Shiny R Community Explorer](https://benubah.github.io/r-community-explorer/rladies.html) developed by Ben Ubah
]
???
This slide uses:
- bullet list with `*`
- incremental slides divided by `--`
- numbered list with `1.`
- a horizontal bar
- the `.footnote[]` class
---
# Inserting images
```{r, echo = TRUE, fig.alt="World map with countries that have R-Ladies chapters highlighted in purple"}
knitr::include_graphics("img/RLadiesMap.png")
```
--
> Note: You can use the `fig.alt` code chunk option to add alternative text to your images, that way they are accessible to screen reader users:
- In code chunk: `{r, fig.alt = "<descriptive alt text>"}`.
- Read more about this in [{knitr} NEWS.md](https://github.com/yihui/knitr/blob/master/NEWS.md#new-features-1)
???
This slide uses:
- an image inserted with `knitr::include_graphics()`
- the `fig.alt =` code chunk option for alternative text
---
# Tables and quotes
### Table
.pull-left[
`palmerpenguins::penguins`
The `penguins` dataset contains size measurements for adult penguins nesting near Palmer Station in Antarctica.
Measurements like `body_mass_g`
]
.pull-right[
```{r}
palmerpenguins::penguins %>%
select(species, island, body_mass_g) %>%
arrange(body_mass_g) %>%
head() %>%
knitr::kable(format = 'html')
```
]
???
This slide uses:
- the `.pull-left[]` and `.pull-right[]` classes
- an R code chunk to produce the html table
--
### Quote
> You can read more about the `palmerpenguins` data package authored and maintained by Allison Horst at [allisonhorst.github.io/palmerpenguins](https://allisonhorst.github.io/palmerpenguins/)
???
- a quote with `>`
---
# Highlighting code
`> This is what inline code looks like`
You can highlight lines of code within code chunks using `#<<`:
### Code
```r
palmerpenguins::penguins %>%
ggplot(aes(x = island, y = body_mass_g)) +
geom_boxplot(aes(fill = island)) #<<
```
### Output
```{r eval=FALSE, echo=TRUE}
palmerpenguins::penguins %>%
ggplot(aes(x = species, y = body_mass_g)) +
geom_boxplot(aes(fill = island)) #<<
```
???
This slide uses:
- inline code highlighting with backticks ` `` `
- a code chunk to produce a ggplot
---
```{r penguin-body-mass, eval=TRUE, echo=TRUE, fig.height = 4.5}
palmerpenguins::penguins %>%
ggplot(aes(x = species, y = body_mass_g)) +
geom_boxplot(aes(fill = island))
```
???
This slide uses:
- a code chunk to produce a ggplot
- code chunk option `fig.height = 4.5` to control the figure height
---
class: middle, inverse, title-slide
.pull-left[
# Thank you!
<br/>
## R-Ladies Global
### Promoting gender diversity in the R community
]
.pull-right[
.right[
<img style="border-radius: 50%;"
src="img/RLadiesGlobal.png"
width="150px"
alt="R-Ladies logo"
/>
[`r fontawesome::fa("link", a11y = "sem", fill = "#FFFFFF")` rladies.org](https://rladies.org)<br/>
[`r fontawesome::fa("twitter", a11y = "sem", fill = "#FFFFFF")` @RLadiesGlobal](https://twitter.com/rladiesglobal)<br/>
[`r fontawesome::fa("paper-plane", a11y = "sem", fill = "#FFFFFF")` [email protected]](mailto:[email protected])<br>
[`r fontawesome::fa("slack", a11y = "sem", fill = "#FFFFFF")` Join the Slack](https://rladies-community-slack.herokuapp.com/)
]]
???
Thank you for joining me!
You can find my contact information linked on this slide if you want to get in touch, and I'm happy to take any questions.
This slide also uses:
- the `title-slide` class, to remove the slide number at the bottom