-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreport.qmd
64 lines (48 loc) · 1.93 KB
/
report.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
---
title: "My R Report"
author: "David Keyes"
format: html
execute:
warning: false
message: false
echo: false
output: true
---
```{r load_packages}
library(tidyverse)
library(janitor)
library(scales)
```
```{r import_data}
survey_data <- read_tsv("2020-combined-survey-final.tsv") |>
clean_names()
avg_r_enjoyment <- survey_data |>
drop_na(qr_enjoyment) |>
group_by(qcountry) |>
summarize(avg_enjoyment = mean(qr_enjoyment),
n = n()) |>
filter(n >= 50) |>
arrange(desc(avg_enjoyment)) |>
drop_na(qcountry) |>
mutate(avg_enjoyment_two_digits = number(avg_enjoyment, accuracy = 0.01))
```
# Introduction
Sint dolor do commodo occaecat qui exercitation culpa consequat aute veniam. Et velit cupidatat sit irure. Officia labore esse nostrud magna. Enim commodo pariatur cillum tempor non nisi magna. Laborum do dolor nulla excepteur adipisicing Lorem sit excepteur nisi eiusmod nostrud enim. Ipsum anim dolor consectetur minim officia cupidatat officia fugiat aliquip veniam qui proident.
# Results
Here is a chart that shows our results.
```{r data_viz}
ggplot(data = avg_r_enjoyment,
mapping = aes(x = avg_enjoyment,
y = qcountry,
label = avg_enjoyment_two_digits)) +
geom_col(fill = "#6cabdd") +
geom_text(hjust = 1.2,
color = "white") +
theme_minimal() +
labs(title = "Average Enjoyment of R on a 5-Point Scale Among Users Around the World",
subtitle = "Only countries with 50 or more responses included",
y = NULL,
x = NULL)
```
# Conclusion
Sint dolor do commodo occaecat qui exercitation culpa consequat aute veniam. Et velit cupidatat sit irure. Officia labore esse nostrud magna. Enim commodo pariatur cillum tempor non nisi magna. Laborum do dolor nulla excepteur adipisicing Lorem sit excepteur nisi eiusmod nostrud enim. Ipsum anim dolor consectetur minim officia cupidatat officia fugiat aliquip veniam qui proident.