knitr::opts_chunk$set(results='asis', echo=FALSE, warning=FALSE)

There are two primary approaches for viewing concentration ranges and changes within this application

  1. The View Tidal Trends tab provides simplified access for viewing current concentration ranges and changes using default settings. Most basic mapping needs can be met using this tab.

  2. The Create Custom Map tab provides more options to filter and customize the same information. For example, the user can filter displayed stations and further customize the symbol palettes using the Create Custom Map tab.

View Tidal Trends

The View Tidal Trends tab provides simplified access for viewing current concentration ranges and changes using default settings. Most basic mapping needs can be met using this tab. The maps are updated automatically as the user makes selections.

Map Types

There are three maps available in the main portion of the window that are automatically updated as the options outlined in the steps below are selected:

Step 1. Choose Data

Select the time period (long term or short term) and type of change (with or without flow adjustment) to investigate from the left-hand navigation pane.

Note data is currently available for the D.C. water quality stations for the following parameters and time period:

Step 2. Choose Map Layer

Select the water quality parameter (together with layer and season) to investigate from the left-hand navigation pane.

Step 3. Map Options

Select the desired map color palette. Color palette options differ between the range map and the change map.

Determine the direction of an improving trend (the direction of a good change) from the left-hand navigation pane. For example, nutrient trends are generally ‘good’ if they are decreasing (downward triangle), but dissolved oxygen trends are ‘good’ when increasing (upward triangle).


Create Custom Maps

The Create Custom Map tab provides more options to filter and customize the same information. For example, the user can filter displayed stations and further customize the symbol palettes using the Create Custom Map tab.

Because of the larger number of filtering and customization settings, the user must proactively click buttons for Apply Filters and Update Map to trigger map updates.

Step 1. Select Data

Click the 1. Select Data page from the main menu located at the top of the webpage. The Select Data page provides two approaches to choose data for mapping.

Step 1a. Load final file

This option allows the user to select from a list of analyses prepared by Chesapeake Bay state stakeholders.

Step 1b. Load user file

This option allows the user to upload a file created from baytrends.

Before continuing, make sure the data file has loaded into the app. That is, wait for the blue progress bar to read "Upload Complete". A data table will also appear in the main window when the upload is complete. If the imported data are not in the proper format, then a "red" error message will appear in the main window instead of a data table.

If instead of a blue progress bar with "Upload Complete" you get a red bar with an error message, then the file did not load properly. Edit your file by sorting it by a column (Station ID seems to always work) then resave and retry the upload.

Step 2. Filtered Data

Click the 2. Filtered Data button from the main menu located at the top of the webpage. This page will display filter options along the left-hand navigation panel. Use these filters to narrow the data to be displayed.

This page displays four tabs below the main menu:

Filtered Data Summary

The data table displayed in the main window summarizes the number of results per station.

Notice the message “yyy = Number of entries with more than 1 record”. It is required to use the left-hand navigation filters to narrow the data until this message indicates “0” entries have more than 1 record.* Most users will use the Map Layer filter to select which results to plot if one of the final files from the 1. Select Data page was previously selected.

Also, notice the number of entries “Showing 1 to 5 of zzz entries” shown below the Station summary table. The zzz indicates the number of stations with data that could potentially be plotted in later steps.

Click Filter by State (as well as CB Segment, Station Group, and Station Identifier) to set the filters for the geographic scope of the stations to be used in the analysis. The process of using the Select All and Deselect All options, as well as making individual choices using the selection dialogue box is similar to other apps.

Click Apply Filters to apply the filters and update the data table in the main window.

Click Reset Filter Selections and click the Apply Filters buttons to start over.

*User-created files: The baytrends output files may have results for different parameters, models, layers (depths), periods (time periods), and seasons for each station. To make the app work, you need to filter the data down to 1 record per station in order to plot range or change maps. Use the Station summary table to guide the process of filtering data using the left-hand navigation panel, but also monitor the number of stations with data for plotting to ensure that you do not remove too many stations from the analysis.

Filtered Data

This page displays the data to be mapped. The data in this table can be sorted by the various table columns.

Range Map

Click the Range Map tab.

Open and make a selection in each of the blue boxes under Range Map Options. An error may occur if selections are skipped. Then click Update Range Map.

Click the Auto-generate Title to generate a default figure title.

Change Map

Click the Change Map tab.

Open and make a selection in each of the blue boxes under Change Map Options. An error may occur if selections are skipped. Then click Update Change Map.

Click the Auto-generate Title to generate a default figure title.

Advanced Users

baytrendsmap is a "Shiny app" used to create on-the-fly maps using output from "baytrends". baytrendsmap is open source and can be downloaded and run from your desktop RStudio. Go to https://github.com/tetratech/baytrendsmap to download the source code. Report bugs "here".



leppott/baytrendsmap documentation built on Feb. 13, 2024, 12:59 p.m.