Depression in College Students

knitr::include_graphics("C:/Users/jman1/OneDrive/Documents/DepressedCollege.jpg")

Image Source: https://www.nami.org/depression-disorders/what-are-the-warning-signs-of-depression-in-college-students/

Introduction

This box plot visualization shows that study satisfaction of depressed males is somewhat higher than that for females, although interesting, for non-depressed males and females, this gap in study satisfaction disappears.
bar_chart <- ggplot(studentDepression, aes(x = `Dietary Habits`, fill = `Have you ever had suicidal thoughts ?`)) + #Create bar chart 
  geom_bar(position = "fill") +
  labs(
    title = "Proportion of Suicidal Thoughts by Dietary Habits",
    x = "Dietary Habits",
    y = "Proportion",
    fill = "Suicidal Thoughts",
    caption = "Data Source: https://www.kaggle.com/datasets/ikynahidwin/depression-student-dataset"
  ) +
  scale_fill_manual(values = c("#F8766D", "#00BFC4")) +
  theme_light()

bar_chart

This bar chart shows that for students with unhealthy dietary habits, suicidal thoughts tend to be slightly more prevalent compared to those with healthy dietary habits. This goes to show that a good diet is one factor of many that can potentially ward off depressive attitudes.
density_plot <- ggplot(studentDepression, aes(x = Sleep_Duration, fill = Depression)) + #Create interactive density plot
  geom_density(alpha = 0.6) +
  labs(
    title = "Sleep Duration by Depression Status",
    x = "Sleep Duration (Hours)",
    y = "Density",
    fill = "Depression Status",
    caption = "Data Source: https://www.kaggle.com/datasets/ikynahidwin/depression-student-dataset"
  ) +
  scale_fill_manual(values = c("#8DA0CB", "#FC8D62")) +
  theme_bw() +
  theme(
    plot.title = element_text(hjust = 0.5, size = 14, face = "bold"),
    axis.text = element_text(size = 10),
    axis.title = element_text(size = 12),
    legend.title = element_text(size = 12)
  )

interactive_density_plot <- ggplotly(density_plot)
interactive_density_plot
This density plot simply shows that college students most often get very few hours of sleep. This is likely an unfortunate by-product of the demanding college student workload, although this lack of sleep, as seen earlier can cause complications in student’s mental health as well as decreased academic performance.