View source: R/map_greatlakes_fishtissue.R
map_greatlakes_fishtissue | R Documentation |
Map of Great Lakes with values above and below a screening value.
map_greatlakes_fishtissue(
data = NULL,
sv = NULL,
xlong = "Longitude",
ylat = "Latitude",
amount = "amount",
lab_title = NULL,
lab_subtitle = NULL,
lab_caption = NULL
)
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 |
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.
A ggplot object is returned.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.