-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8d8e43
commit 1c10887
Showing
22 changed files
with
153 additions
and
12 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/env Rscript | ||
raw_table <- readr::read_csv( | ||
"20240524.csv" | ||
) | ||
|
||
remove_irrevant_cols <- function(t) { | ||
t$Tidstämpel <- NULL | ||
t$`In the course, what should we keep doing?` <- NULL | ||
t$`In the course, which section(s) scheduled enough time for exercises?` <- NULL | ||
t$`In the course, what should we improve?` <- NULL | ||
t$`Are there any other comments on the course?` <- NULL | ||
names(t) <- stringr::str_extract(names(t), pattern = "\\[.*\\]") | ||
names(t) <- stringr::str_sub(names(t), start = 2, end = -2) | ||
t | ||
} | ||
|
||
google_forms_table <- remove_irrevant_cols(t = raw_table) | ||
table_with_rowname <- t(google_forms_table) | ||
|
||
# No rownames | ||
table <- tibble::tibble(matrix(nrow = nrow(table_with_rowname), ncol = 5)) | ||
table[ , 1] <- rownames(table_with_rowname) | ||
table[ , 2:5] <- table_with_rowname[ , 1:4] | ||
names(table) <- c("session", paste0("learner_", 1:4)) | ||
table | ||
|
||
tidy_table <- tidyr::pivot_longer(table, cols = 2:5) | ||
|
||
confidence_per_topic <- dplyr::summarise( | ||
dplyr::group_by(tidy_table, session), | ||
mean_confidence = mean(value) | ||
) | ||
confidence_per_topic | ||
ggplot2::ggplot( | ||
data = confidence_per_topic, | ||
mapping = ggplot2::aes(x = session, y = mean_confidence) | ||
) + ggplot2::geom_col() + | ||
ggplot2::scale_y_continuous(limits = c(0, 5)) + | ||
ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 90, vjust = 0.5, hjust=1)) | ||
|
||
ggplot2::ggsave("mean_confidence_per_session.png", height = 7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/env Rscript | ||
n_learners_in_time <- readr::read_csv( | ||
"learners_in_time.csv" | ||
) | ||
|
||
ggplot2::ggplot( | ||
data = n_learners_in_time, | ||
mapping = ggplot2::aes(x = time, y = n_learners) | ||
) + ggplot2::geom_line( | ||
) + ggplot2::geom_rect(mapping = ggplot2::aes( | ||
xmin = readr::parse_time("9:00"), | ||
xmax = readr::parse_time("10:20"), | ||
ymin = 0, | ||
ymax = 8 | ||
), fill = ggplot2::alpha("orange", 0.01) | ||
) + ggplot2::geom_rect(mapping = ggplot2::aes( | ||
xmin = readr::parse_time("15:30"), | ||
xmax = readr::parse_time("16:00"), | ||
ymin = 0, | ||
ymax = 8 | ||
), fill = ggplot2::alpha("orange", 0.01) | ||
) + ggplot2::geom_rect(mapping = ggplot2::aes( | ||
xmin = readr::parse_time("12:06"), | ||
xmax = readr::parse_time("13:00"), | ||
ymin = 0, | ||
ymax = 8 | ||
), fill = ggplot2::alpha("blue", 0.01) | ||
) + ggplot2::theme(text = ggplot2::element_text(size = 20)) + | ||
ggplot2::labs( | ||
title = "Number of learners in time", | ||
caption = "Intermediate Bianca, 2024-05-25, orange = me, blue = break" | ||
) | ||
ggplot2::ggsave("n_learners_in_time.png", width = 7, height = 7) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
time,n_learners | ||
9:00,1 | ||
9:01,2 | ||
9:02,3 | ||
9:03,4 | ||
9:04,5 | ||
9:05,6 | ||
9:25,6 | ||
9:30,7 | ||
10:10,7 | ||
10:38,8 | ||
12:07,8 | ||
13:00,4 | ||
13:18,5 | ||
14:10,4 | ||
15:00,4 | ||
15:15,3 | ||
15:30,3 | ||
16:00,3 | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.