Skip to contents

Create Flagged Sites Map

Usage

TADA_FlaggedSitesMap(.data)

Arguments

.data

TADA data frame containing the data downloaded from the WQP, where each row represents a unique data record. Data frame must include the columns 'MonitoringLocationIdentifier','MonitoringLocationName','TADA.LatitudeMeasure', and 'TADA.LongitudeMeasure' to run this function.

Value

A leaflet map that shows all sites in the data frame that contain flagged data in the form of:

  1. imprecise coordinates - latitudes and/or longitudes that contain fewer then 3 decimal places.

  2. outside USA - coordinates that fall outside the bounds of the USA.

  3. near other sites - groups of sites that are spatially located within a threshold distance (defaulting to 100 m) from each other.

Examples

if (FALSE) { # \dontrun{
# Load example data frame:
data(Data_Nutrients_UT)
data(Data_NCTCShepherdstown_HUC12)
data(Data_6Tribes_5y_Harmonized)

# Create maps:
TADA_FlaggedSitesMap(Data_Nutrients_UT)
TADA_FlaggedSitesMap(Data_NCTCShepherdstown_HUC12)
TADA_FlaggedSitesMap(Data_6Tribes_5y_Harmonized)
} # }