Exploring the 2014 Mental Health in Tech Survey

Building Web Applications with Shiny in R

Kaelen Medeiros

Data Scientist

2014 Mental Health in Tech Survey

  • Administered by Open Sourcing Mental Illness (OSMI), a non-profit
  • OSMI website with survey: https://osmihelp.org/research
  • Filter for Age > 0
  • Inputs are questions about mental health consequences and mental vs. physical health
Building Web Applications with Shiny in R

2014 Mental Health in Tech Survey app

An app displaying questions from a mental health in tech survey

Building Web Applications with Shiny in R

Custom error messages

server <- function(input, output, session) {
  output$age <- renderTable({
    validate(
      need(input$age != "", "Be sure to select an age.")
    )

    mental_health_survey %>%
      summarize(avg_age = mean(Age))
  })
}
Building Web Applications with Shiny in R

Custom error messages

An app displaying questions from a mental health in tech survey

Building Web Applications with Shiny in R

shinyWidgets

shinyWidgetsGallery()

An app displaying a gallery of input widgets from the shinyWidgets package

Building Web Applications with Shiny in R

Let's practice!

Building Web Applications with Shiny in R

Preparing Video For Download...