map_greatlakes_fishtissue: Great Lakes Map

View source: R/map_greatlakes_fishtissue.R

map_greatlakes_fishtissueR Documentation

Great Lakes Map

Description

Map of Great Lakes with values above and below a screening value.

Usage

map_greatlakes_fishtissue(
  data = NULL,
  sv = NULL,
  xlong = "Longitude",
  ylat = "Latitude",
  amount = "amount",
  lab_title = NULL,
  lab_subtitle = NULL,
  lab_caption = NULL
)

Arguments

data

Data frame of all values. Default = NULL

sv

Screening value. Default = NULL

xlong

Data column with longitude. Default = Longitude

ylat

Data column with latitude. Default = Latitude

amount

Data column with analyte value. Default = amount

lab_title

Title string. Default = NULL

lab_subtitle

Caption string. Default = NULL

lab_caption

Caption string. Default = NULL

Details

Map of Great Lakes with two data layers. Layer 1 are sites greater than or equal to the screening value (exceedances). Layer 2 are sites less than the screening value (non-exceedances).

# 20230719, moved code to package scripts. Derived for Great Lakes studies.

Value

A ggplot object is returned.

Examples


data <- data_gl2010_map
sv <- 40
xlong <- "Longitude"
ylat <- "Latitude"
amount <- "Amount"
lab_title <- "Great Lakes, 2010"
lab_subtitle <- paste("PFOS", paste0("Screeing Value = ", sv), sep = "\n")
lab_caption <- NULL

map_greatlakes_fishtissue(data = data
                          , sv = sv
                          , xlong = xlong
                          , ylat = ylat
                          , amount = amount
                          , lab_title = lab_title
                          , lab_subtitle = lab_subtitle
                          , lab_caption = lab_caption)


leppott/ProjectTasks documentation built on Oct. 12, 2023, 1:18 a.m.