Practice Activity Week 7

This week we’re going to explore an interactive dashboard made by a previous STAT 541 student! Nicholas Soares works for the Morro Bay National Estuary Program, and created this “State of the Bay” dashboard:

https://mbnep-state-of-the-bay.shinyapps.io/data_dashboard/

We’re going to explore how interactivity is used throughout the dashboard, so we recommend you have both the source file and the public dashboard opened up!

Accessing the Practice Activity

Download the materials for the activity here: pa-7.zip

This .zip folder contains:

  1. the Quarto file (pa-7.qmd)
  2. the source file for creating the interactive dashboard (morro-bay-estuary-dash.qmd)
Important

Be sure to save the files inside your Week 7 folder of your STAT 431 (or 541) folder!

Overview

  1. In the word cloud card, where do the options for “Pick your favorite:” come from?

  2. What function is used to update the word cloud based on the option input by the user?

Creek Health

  1. Where is the creek_analyte input object used? Specifically, how is this object used?

  2. What font family are the labels for the creek segments?

  3. Where is information for the creek segment clicked on in the leaflet map stored?

Bacteria

  1. What function was used to add a message about the transformations above the buttons for “Select Transformation”?

  2. What values do the radio buttons take on?

  3. Are are the plotting data adjusted based on the radio button that is selected?

Phytoplankton

  1. What function is used to allow the user to select the dates that should be visualized in the plot?

  2. How are these dates stored? Specifically, are they stored individually? As a vector of inputs? As a list?

Shore Birds

  1. Which two zones produce two composition plots (an individual plot and a combined plot) when clicked on?

  2. What color palette is used for the filled barplot?

Bay Fish

  1. The "Bay pipefish" is in a different position depending on the habitat that was selected (i.e., it is third for Shoreline, second to last for Tidal Flat, and third to last for Open Channel). How does the ordering of the fish species change based on the habitat input?

  2. What color palette is used for the filled barplot?