Purpose of discourse in online science courses, by discipline

Author

Dr. Regina Schoenfeld

Published

November 3, 2023

Code
library(tidyverse)
library(ggplot2)

data_to_viz <- read_csv("data/liwc-data.csv")

library(tidyverse)

data_to_viz <- read_csv("data/liwc-data.csv")

data_to_viz %>%
  select(WC, cogproc, course_id) %>%
  mutate(subject = str_replace_all(str_extract(course_id, "[[:alpha:]]+"),
                                   c("AnPhA" = "Anatomy",
                                     "BioA" = "Biology", 
                                     "FrScA" = "Forensics", 
                                     "OcnA" =  "Oceanography", 
                                     "PhysA" = "Physics"))) %>%
  mutate(cog_discourse = (cogproc/WC) *100) %>%
  ggplot(aes(x = subject, y = cog_discourse, color = subject)) +
  geom_boxplot(alpha = 0.25) +
 
  labs(
    title = "Do students in different subject areas express higher levels of cognitive engagement in their online posts?",
    y = "% of words describing cognitive processes",
    x = "Course Subject",
    subtitle = "What percentage of online discourse is devoted to cognitive processes such as hypothesis generation in various science courses.",
    caption = "Cognitive processes are defined as references to insight, causation, discrepancy, tentative modifiers, expressions of certainty and differentiation.") +
  theme_minimal() +
  theme(legend.position = "none") +
  scale_color_brewer(palette = "Set1", name = "Course Subject")

The box plot above shows the relative proportion of words denoting cognitive engagement (Pennebaker, 2015) used by students in online discussion postings for multiple courses in 5 different STEM areas. Although there was great variability, students in biology courses appear to have used the greatest proportion of words denoting cognitive engagement compared to students in other subject areas.

Note: this analysis should be interpreted with caution. A careful inspection of the graph will reveal several outliers. It appears as though the initial data contains several values greater than 100% for use of cogntive words in forensic science courses.